Class CompressionStreamChainer
- java.lang.Object
-
- org.apache.nemo.runtime.executor.data.streamchainer.CompressionStreamChainer
-
- All Implemented Interfaces:
EncodeStreamChainer
public class CompressionStreamChainer extends java.lang.Object implements EncodeStreamChainer
EncodeStreamChainer
for applying compression.
-
-
Constructor Summary
Constructors Constructor Description CompressionStreamChainer(CompressionProperty.Value compression)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
chainOutput(java.io.OutputStream out)
ChainOutputStream
and returns chainedOutputStream
.
-
-
-
Constructor Detail
-
CompressionStreamChainer
public CompressionStreamChainer(CompressionProperty.Value compression)
Constructor.- Parameters:
compression
- compression method.
-
-
Method Detail
-
chainOutput
public final java.io.OutputStream chainOutput(java.io.OutputStream out) throws java.io.IOException
Description copied from interface:EncodeStreamChainer
ChainOutputStream
and returns chainedOutputStream
.- Specified by:
chainOutput
in interfaceEncodeStreamChainer
- Parameters:
out
- the stream which will be chained.- Returns:
- chained
OutputStream
. - Throws:
java.io.IOException
- if fail to chain the stream.
-
-