public class HadoopSnappyCompressionOutputStream extends CompressionOutputStream
delegate
Constructor and Description |
---|
HadoopSnappyCompressionOutputStream(OutputStream out,
CompressionProvider provider) |
Modifier and Type | Method and Description |
---|---|
static OutputStream |
getSnappyOutputStream(int bufferSize,
OutputStream out)
Gets an OutputStream that uses the snappy codec and wraps the supplied base output stream.
|
static OutputStream |
getSnappyOutputStream(OutputStream out)
Gets an OutputStream that uses the snappy codec and wraps the supplied base output stream.
|
addEntry, close, getCompressionProvider, write, write, write
flush
public HadoopSnappyCompressionOutputStream(OutputStream out, CompressionProvider provider) throws IOException
IOException
public static OutputStream getSnappyOutputStream(OutputStream out) throws Exception
the
- buffer size for the codec to use (in bytes)out
- the base output stream to wrap aroundException
- if snappy is not available or an error occurs during reflectionpublic static OutputStream getSnappyOutputStream(int bufferSize, OutputStream out) throws Exception
the
- buffer size for the codec to use (in bytes)out
- the base output stream to wrap aroundException
- if snappy is not available or an error occurs during reflectionCopyright © 2018 Hitachi Vantara. All rights reserved.