程序包 | 说明 |
---|---|
org.apache.hadoop.io.compress | |
org.apache.hadoop.io.compress.bzip2 | |
org.apache.hadoop.io.compress.snappy | |
org.apache.hadoop.io.compress.zlib |
限定符和类型 | 字段和说明 |
---|---|
protected Compressor |
CompressorStream.compressor |
限定符和类型 | 方法和说明 |
---|---|
Compressor |
SnappyCodec.createCompressor()
Create a new
Compressor for use by this CompressionCodec . |
Compressor |
GzipCodec.createCompressor() |
Compressor |
DefaultCodec.createCompressor() |
Compressor |
CompressionCodec.createCompressor()
Create a new
Compressor for use by this CompressionCodec . |
Compressor |
BZip2Codec.createCompressor()
This functionality is currently not supported.
|
static Compressor |
CodecPool.getCompressor(CompressionCodec codec) |
static Compressor |
CodecPool.getCompressor(CompressionCodec codec,
Configuration conf)
Get a
Compressor for the given CompressionCodec from the
pool or a new one. |
限定符和类型 | 方法和说明 |
---|---|
Class<? extends Compressor> |
SnappyCodec.getCompressorType()
Get the type of
Compressor needed by this CompressionCodec . |
Class<? extends Compressor> |
GzipCodec.getCompressorType() |
Class<? extends Compressor> |
DefaultCodec.getCompressorType() |
Class<? extends Compressor> |
CompressionCodec.getCompressorType()
Get the type of
Compressor needed by this CompressionCodec . |
Class<? extends Compressor> |
BZip2Codec.getCompressorType()
This functionality is currently not supported.
|
限定符和类型 | 方法和说明 |
---|---|
CompressionOutputStream |
SnappyCodec.createOutputStream(OutputStream out,
Compressor compressor)
Create a
CompressionOutputStream that will write to the given
OutputStream with the given Compressor . |
CompressionOutputStream |
GzipCodec.createOutputStream(OutputStream out,
Compressor compressor) |
CompressionOutputStream |
DefaultCodec.createOutputStream(OutputStream out,
Compressor compressor) |
CompressionOutputStream |
CompressionCodec.createOutputStream(OutputStream out,
Compressor compressor)
Create a
CompressionOutputStream that will write to the given
OutputStream with the given Compressor . |
CompressionOutputStream |
BZip2Codec.createOutputStream(OutputStream out,
Compressor compressor)
Creates a compressor using given OutputStream.
|
static void |
CodecPool.returnCompressor(Compressor compressor)
Return the
Compressor to the pool. |
构造器和说明 |
---|
BlockCompressorStream(OutputStream out,
Compressor compressor)
Create a
BlockCompressorStream with given output-stream and
compressor. |
BlockCompressorStream(OutputStream out,
Compressor compressor,
int bufferSize,
int compressionOverhead)
Create a
BlockCompressorStream . |
CompressorStream(OutputStream out,
Compressor compressor) |
CompressorStream(OutputStream out,
Compressor compressor,
int bufferSize) |
限定符和类型 | 类和说明 |
---|---|
class |
BZip2DummyCompressor
This is a dummy compressor for BZip2.
|
限定符和类型 | 类和说明 |
---|---|
class |
SnappyCompressor
A
Compressor based on the snappy compression algorithm. |
限定符和类型 | 类和说明 |
---|---|
class |
BuiltInZlibDeflater
A wrapper around java.util.zip.Deflater to make it conform
to org.apache.hadoop.io.compress.Compressor interface.
|
class |
ZlibCompressor
A
Compressor based on the popular
zlib compression algorithm. |
限定符和类型 | 方法和说明 |
---|---|
static Compressor |
ZlibFactory.getZlibCompressor(Configuration conf)
Return the appropriate implementation of the zlib compressor.
|
限定符和类型 | 方法和说明 |
---|---|
static Class<? extends Compressor> |
ZlibFactory.getZlibCompressorType(Configuration conf)
Return the appropriate type of the zlib compressor.
|
Copyright © 2009 The Apache Software Foundation