You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kyoungha Min (Jira)" <ji...@apache.org> on 2020/04/11 02:08:00 UTC
[jira] [Created] (BEAM-9740) User Defined Compression
Kyoungha Min created BEAM-9740:
----------------------------------
Summary: 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
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.
```
public interface CompressionFactory extends Serializable {
ReadableByteChannel readDecompressed(ReadableByteChannel channel)
throws IOException;
WritableByteChannel writeCompressed(WritableByteChannel channel)
throws IOException;
String getSuggestedSuffix();
boolean isCompressed(String filename);
}
```
And the current
--
This message was sent by Atlassian Jira
(v8.3.4#803005)