[ 
https://issues.apache.org/jira/browse/BEAM-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15531719#comment-15531719
 ] 

Tim Sears edited comment on BEAM-683 at 9/29/16 4:09 AM:
---------------------------------------------------------

I worked on this a bitt, adding a {{ seek(byte_offset) }} and {{ get_block() }} 
method to the _CompressedFile class (see 
[commit|https://github.com/tim1357/incubator-beam/commit/891bf0a6f064698422a7612c04659e8ac2b2494d]).
 


was (Author: tim1357):
I worked on this a bitt, adding a {{seek(byte_offset) }} and {{get_block()}} 
method to the _CompressedFile class (see 
[commit|https://github.com/tim1357/incubator-beam/commit/891bf0a6f064698422a7612c04659e8ac2b2494d]).
 

> Make BZIP compressed files splittable 
> --------------------------------------
>
>                 Key: BEAM-683
>                 URL: https://issues.apache.org/jira/browse/BEAM-683
>             Project: Beam
>          Issue Type: Wish
>            Reporter: Tim Sears
>            Priority: Minor
>   Original Estimate: 10h
>  Remaining Estimate: 10h
>
> Bzip2 is compressed as blocks, so it should be possible to do dynamic 
> splitting. To do this: Seek to a location in the bzip, then keep seeking 
> until you find the 6 byte block-start sequence 0x314159265359 (which is the 
> 12 digit approximation of pi). You can use a bzip2 decompressor from that 
> point onwards.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to