Snappy-Java Source Code

Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google.

Snappy-Java Source Code files are provided in the source packge (snappy-java-1.1.8.4-sources.jar). You can download it at Snappy Maven Website.

You can also browse Snappy-Java Source Code below:

✍: FYIcenter.com

org/xerial/snappy/SnappyHadoopCompatibleOutputStream.java

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();
    }
}

org/xerial/snappy/SnappyHadoopCompatibleOutputStream.java

 

Or download all of them as a single archive file:

File name: snappy-java-1.1.8.4-sources.jar
File size: 1962098 bytes
Release date: 2021-01-25
Download 

 

Download and Install Snappy-Java Binary Package

What Is Snappy-Java

Downloading and Reviewing snappy-java.jar

⇑⇑ Snappy-Java - Compresser and Decompresser

2021-07-13, 15578👍, 0💬