Example usage for org.apache.hadoop.io.compress CompressorStream CompressorStream

List of usage examples for org.apache.hadoop.io.compress CompressorStream CompressorStream

Introduction

In this page you can find the example usage for org.apache.hadoop.io.compress CompressorStream CompressorStream.

Prototype

public CompressorStream(OutputStream out, Compressor compressor, int bufferSize) 

Source Link

Usage

From source file:com.hadoop.compression.fourmc.ZstCodec.java

License:BSD License

@Override
public CompressionOutputStream createOutputStream(OutputStream out, Compressor compressor) throws IOException {

    if (!isNativeLoaded(conf)) {
        throw new RuntimeException("native hadoop-4mc library not available");
    }/*from  w  w  w .j a va  2 s  .c  o m*/

    return new CompressorStream(out, compressor, ZST_BUFFER_SIZE);
}