Class ReusableStreamGzipCodec
java.lang.Object
org.apache.hadoop.io.compress.DefaultCodec
org.apache.hadoop.io.compress.GzipCodec
org.apache.hadoop.hbase.io.compress.ReusableStreamGzipCodec
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.io.compress.CompressionCodec
,org.apache.hadoop.io.compress.DirectDecompressionCodec
Fixes an inefficiency in Hadoop's Gzip codec, allowing to reuse compression streams.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
A bridge that wraps around a DeflaterOutputStream to make it a CompressionOutputStream.Nested classes/interfaces inherited from interface org.apache.hadoop.io.compress.CompressionCodec
org.apache.hadoop.io.compress.CompressionCodec.Util
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.io.compress.CompressionOutputStream
Methods inherited from class org.apache.hadoop.io.compress.GzipCodec
createCompressor, createDecompressor, createDirectDecompressor, createInputStream, createInputStream, createOutputStream, getCompressorType, getDecompressorType, getDefaultExtension
Methods inherited from class org.apache.hadoop.io.compress.DefaultCodec
getConf, setConf
-
Field Details
-
LOG
-
-
Constructor Details
-
ReusableStreamGzipCodec
public ReusableStreamGzipCodec()
-
-
Method Details
-
createOutputStream
public org.apache.hadoop.io.compress.CompressionOutputStream createOutputStream(OutputStream out) throws IOException - Specified by:
createOutputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Overrides:
createOutputStream
in classorg.apache.hadoop.io.compress.GzipCodec
- Throws:
IOException
-