Top Fields Constructors Methods
org.xerial.snappy

public Class SnappyHadoopCompatibleOutputStream

extends SnappyOutputStream
Class Inheritance
Imports
org.xerial.snappy.buffer.CachedBufferAllocator, java.io.OutputStream

Field Summary

Inherited from org.xerial.snappy.SnappyOutputStream:
DEFAULT_BLOCK_SIZEinputBufferMAX_BLOCK_SIZEMIN_BLOCK_SIZEoutoutputBuffer

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected void
writeBlockPreemble()

Overrides org.xerial.snappy.SnappyOutputStream.writeBlockPreemble.

Optionally write a preemble before a block.

protected int
Inherited from org.xerial.snappy.SnappyOutputStream:
closecompressInputdumpOutputflushrawWritereadIntwritewritewritewritewritewritewritewritewritewritewritewritewriteCurrentDataSizewriteInt

Constructor Detail

SnappyHadoopCompatibleOutputStreamback to summary
public SnappyHadoopCompatibleOutputStream(OutputStream out)
SnappyHadoopCompatibleOutputStreamback to summary
public SnappyHadoopCompatibleOutputStream(OutputStream out, int blockSize)

Method Detail

writeBlockPreembleback to summary
protected void writeBlockPreemble()

Overrides org.xerial.snappy.SnappyOutputStream.writeBlockPreemble.

Doc from org.xerial.snappy.SnappyOutputStream.writeBlockPreemble.

Optionally write a preemble before a block. Hadoop requires the actual block data size being written. This base implementation does nothing. Derive implementation can call writeCurrentDataSize().

Annotations
@Override
writeHeaderback to summary
protected int writeHeader()

Overrides org.xerial.snappy.SnappyOutputStream.writeHeader.

Annotations
@Override