Package org.apache.flink.runtime.state
Class SnappyStreamCompressionDecorator
java.lang.Object
org.apache.flink.runtime.state.StreamCompressionDecorator
org.apache.flink.runtime.state.SnappyStreamCompressionDecorator
- All Implemented Interfaces:
Serializable
This implementation decorates the stream with snappy compression.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.runtime.state.StreamCompressionDecorator
decorateWithCompression, decorateWithCompression
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SnappyStreamCompressionDecorator
public SnappyStreamCompressionDecorator()
-
-
Method Details
-
decorateWithCompression
protected OutputStream decorateWithCompression(NonClosingOutputStreamDecorator stream) throws IOException - Specified by:
decorateWithCompressionin classStreamCompressionDecorator- Parameters:
stream- the stream to decorate- Returns:
- an output stream that is decorated by the compression scheme.
- Throws:
IOException
-
decorateWithCompression
protected InputStream decorateWithCompression(NonClosingInputStreamDecorator stream) throws IOException - Specified by:
decorateWithCompressionin classStreamCompressionDecorator- Parameters:
stream- the stream to decorate.- Returns:
- an input stream that is decorated by the compression scheme.
- Throws:
IOException
-