Class SnappyHadoopCompatibleOutputStream
java.lang.Object
java.io.OutputStream
org.xerial.snappy.SnappyOutputStream
org.xerial.snappy.SnappyHadoopCompatibleOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
-
Field Summary
Fields inherited from class SnappyOutputStream
inputBuffer, MAX_BLOCK_SIZE, out, outputBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOptionally write a preemble before a block.protected intMethods inherited from class SnappyOutputStream
close, compressInput, dumpOutput, flush, rawWrite, write, write, write, write, write, write, write, write, write, write, write, write, writeCurrentDataSizeMethods inherited from class OutputStream
nullOutputStream, write
-
Constructor Details
-
SnappyHadoopCompatibleOutputStream
-
SnappyHadoopCompatibleOutputStream
-
-
Method Details
-
writeHeader
protected int writeHeader()- Overrides:
writeHeaderin classSnappyOutputStream
-
writeBlockPreemble
protected void writeBlockPreemble()Description copied from class:SnappyOutputStreamOptionally write a preemble before a block. Hadoop requires the actual block data size being written. This base implementation does nothing. Derive implementation can callwriteCurrentDataSize().- Overrides:
writeBlockPreemblein classSnappyOutputStream
-