All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xerial.snappy.SnappyHadoopCompatibleOutputStream Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show 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 - 2024 Weber Informatics LLC | Privacy Policy