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 spark-core Show documentation
Show all versions of spark-core Show documentation
Shaded version of Apache Spark 2.x.x for Presto
The newest version!
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 - 2025 Weber Informatics LLC | Privacy Policy