public final class CodecPool extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.io.compress.Compressor |
getCompressor(org.apache.hadoop.io.compress.CompressionCodec codec)
Get a
Compressor for the given CompressionCodec from the
pool or a new one. |
static org.apache.hadoop.io.compress.Decompressor |
getDecompressor(org.apache.hadoop.io.compress.CompressionCodec codec)
Get a
Decompressor for the given CompressionCodec from the
pool or a new one. |
static void |
returnCompressor(org.apache.hadoop.io.compress.Compressor compressor)
Return the
Compressor to the pool. |
static void |
returnDecompressor(org.apache.hadoop.io.compress.Decompressor decompressor)
Return the
Decompressor to the pool. |
public static org.apache.hadoop.io.compress.Compressor getCompressor(org.apache.hadoop.io.compress.CompressionCodec codec)
Compressor for the given CompressionCodec from the
pool or a new one.codec - the CompressionCodec for which to get the
CompressorCompressor for the given CompressionCodec
from the pool or a new onepublic static org.apache.hadoop.io.compress.Decompressor getDecompressor(org.apache.hadoop.io.compress.CompressionCodec codec)
Decompressor for the given CompressionCodec from the
pool or a new one.codec - the CompressionCodec for which to get the
DecompressorDecompressor for the given
CompressionCodec the pool or a new onepublic static void returnCompressor(org.apache.hadoop.io.compress.Compressor compressor)
Compressor to the pool.compressor - the Compressor to be returned to the poolpublic static void returnDecompressor(org.apache.hadoop.io.compress.Decompressor decompressor)
Decompressor to the pool.decompressor - the Decompressor to be returned to the poolCopyright © 2017 The Apache Software Foundation. All rights reserved.