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

Patrick Lucas edited comment on BEAM-9740 at 9/16/21, 8:19 AM:
---------------------------------------------------------------

-Was there discussion on this somewhere before it was resolved as Won't Fix?-

I have some XZ-compressed data that I was hoping to consume easily with Beam, 
and while this interface would be easy to implement for 
org.tukaani.xz.XZInputStream, I was surprised to see this implemented as a 
non-extensible enum.

If there's another way to easily use custom compression with TextIO/FileIO, 
could someone comment here with a pointer? -Or at least provide an explanation 
of why this was marked Won't Fix for users searching in the future.-

Edit: I see that it was actually previously closed as "Won't Fix" by the 
original reporter.


was (Author: plucas):
Was there discussion on this somewhere before it was resolved as Won't Fix?

I have some XZ-compressed data that I was hoping to consume easily with Beam, 
and while this interface would be easy to implement for 
org.tukaani.xz.XZInputStream, I was surprised to see this implemented as a 
non-extensible enum.

If there's another way to easily use custom compression with TextIO/FileIO, 
could someone comment here with a pointer? Or at least provide an explanation 
of why this was marked Won't Fix for users searching in the future.

> User Defined Compression
> ------------------------
>
>                 Key: BEAM-9740
>                 URL: https://issues.apache.org/jira/browse/BEAM-9740
>             Project: Beam
>          Issue Type: Wish
>          Components: sdk-java-core
>            Reporter: Kyoungha Min
>            Priority: P3
>
> Some users, including myself, have asked for various compression types 
> support.
> Currently, the `org.apache.beam.sdk.io.Compression` is an enum type, which 
> cannot be overridden by users.
> Split up the interface so that users can feed their own user-defined  
> ComrpessionFactory.
>  
> {code:java}
> public interface CompressionFactory extends Serializable { 
>     ReadableByteChannel readDecompressed(ReadableByteChannel channel) throws 
> IOException; 
>     WritableByteChannel writeCompressed(WritableByteChannel channel) throws 
> IOException; 
>     String getSuggestedSuffix(); 
>     boolean isCompressed(String filename); 
>     boolean matches(String filename);
> }
> {code}
>  
> And the current 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to