@InterfaceAudience.Private public class CodecPool extends Object
Constructor and Description |
---|
CodecPool() |
Modifier and Type | Method and Description |
---|---|
static ByteBuffDecompressor |
getByteBuffDecompressor(ByteBuffDecompressionCodec codec) |
static org.apache.hadoop.io.compress.Compressor |
getCompressor(org.apache.hadoop.io.compress.CompressionCodec codec) |
static org.apache.hadoop.io.compress.Compressor |
getCompressor(org.apache.hadoop.io.compress.CompressionCodec codec,
org.apache.hadoop.conf.Configuration conf)
Get a
Compressor for the given CompressionCodec from the pool, or get a new one
if the pool is empty. |
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 get a new
one if the pool is empty. |
static void |
returnByteBuffDecompressor(ByteBuffDecompressor decompressor) |
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, org.apache.hadoop.conf.Configuration conf)
Compressor
for the given CompressionCodec
from the pool, or get a new one
if the pool is empty. Copied from hadoop-common without significant modification.public static org.apache.hadoop.io.compress.Compressor getCompressor(org.apache.hadoop.io.compress.CompressionCodec codec)
public static org.apache.hadoop.io.compress.Decompressor getDecompressor(org.apache.hadoop.io.compress.CompressionCodec codec)
Decompressor
for the given CompressionCodec
from the pool, or get a new
one if the pool is empty. Copied from hadoop-common without significant modification.public static ByteBuffDecompressor getByteBuffDecompressor(ByteBuffDecompressionCodec codec)
public static void returnCompressor(org.apache.hadoop.io.compress.Compressor compressor)
Compressor
to the pool. Copied from hadoop-common without significant
modification.public static void returnDecompressor(org.apache.hadoop.io.compress.Decompressor decompressor)
Decompressor
to the pool. Copied from hadoop-common without significant
modification.public static void returnByteBuffDecompressor(ByteBuffDecompressor decompressor)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.