Package org.xerial.snappy
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 org.xerial.snappy.SnappyOutputStream
DEFAULT_BLOCK_SIZE, inputBuffer, MAX_BLOCK_SIZE, MIN_BLOCK_SIZE, out, outputBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Optionally write a preemble before a block.protected int
Methods inherited from class org.xerial.snappy.SnappyOutputStream
close, compressInput, dumpOutput, flush, rawWrite, readInt, write, write, write, write, write, write, write, write, write, write, write, write, writeCurrentDataSize, writeInt
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
SnappyHadoopCompatibleOutputStream
-
SnappyHadoopCompatibleOutputStream
-
-
Method Details
-
writeHeader
protected int writeHeader()- Overrides:
writeHeader
in classSnappyOutputStream
-
writeBlockPreemble
protected void writeBlockPreemble()Description copied from class:SnappyOutputStream
Optionally 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:
writeBlockPreemble
in classSnappyOutputStream
-