public class HadoopSnappyCompressionOutputStream extends CompressionOutputStream
| 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, writeflushpublic HadoopSnappyCompressionOutputStream(OutputStream out, CompressionProvider provider) throws IOException
IOExceptionpublic 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 reflection