org.xerial.snappy.SnappyHadoopCompatibleOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snappy-java Show documentation
Show all versions of snappy-java Show documentation
snappy-java: A fast compression/decompression library
package org.xerial.snappy;
import java.io.OutputStream;
import org.xerial.snappy.buffer.CachedBufferAllocator;
public class SnappyHadoopCompatibleOutputStream extends SnappyOutputStream
{
public SnappyHadoopCompatibleOutputStream(OutputStream out)
{
this(out, DEFAULT_BLOCK_SIZE);
}
public SnappyHadoopCompatibleOutputStream(OutputStream out, int blockSize)
{
super(out, blockSize, CachedBufferAllocator.getBufferAllocatorFactory());
}
@Override
protected int writeHeader()
{
return 0;
}
@Override
protected void writeBlockPreemble()
{
writeCurrentDataSize();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy