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
DEFAULT_BLOCK_SIZE, inputBuffer, MAX_BLOCK_SIZE, MIN_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, readInt, write, write, write, write, write, write, write, write, write, write, write, write, writeCurrentDataSize, writeIntMethods 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
-