Package | Description |
---|---|
org.apache.hadoop.io |
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
|
org.apache.hadoop.io.compress |
Modifier and Type | Method and Description |
---|---|
CompressionCodec |
SequenceFile.Writer.getCompressionCodec()
Returns the compression codec of data in this file.
|
CompressionCodec |
SequenceFile.Reader.getCompressionCodec()
Returns the compression codec of data in this file.
|
Constructor and Description |
---|
BloomMapFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
Class<? extends WritableComparable> keyClass,
Class<? extends Writable> valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress)
Deprecated.
|
BloomMapFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
WritableComparator comparator,
Class valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress)
Deprecated.
|
MapFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
Class<? extends WritableComparable> keyClass,
Class valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress)
Deprecated.
Use Writer(Configuration, Path, Option...) instead.
|
MapFile.Writer(Configuration conf,
FileSystem fs,
String dirName,
WritableComparator comparator,
Class valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress)
Deprecated.
Use Writer(Configuration, Path, Option...) instead.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DirectDecompressionCodec
This class encapsulates a codec which can decompress direct bytebuffers.
|
interface |
SplittableCompressionCodec
This interface is meant to be implemented by those compression codecs
which are capable to compress / de-compress a stream starting at any
arbitrary position.
|
Modifier and Type | Class and Description |
---|---|
class |
BZip2Codec
This class provides output and input streams for bzip2 compression
and decompression.
|
class |
DefaultCodec |
class |
DeflateCodec
Alias class for DefaultCodec to enable codec discovery by 'deflate' name.
|
class |
GzipCodec
This class creates gzip compressors/decompressors.
|
class |
Lz4Codec
This class creates lz4 compressors/decompressors.
|
class |
SnappyCodec
This class creates snappy compressors/decompressors.
|
Modifier and Type | Method and Description |
---|---|
CompressionCodec |
CompressionCodecFactory.getCodec(Path file)
Find the relevant compression codec for the given file based on its
filename suffix.
|
CompressionCodec |
CompressionCodecFactory.getCodecByClassName(String classname)
Find the relevant compression codec for the codec's canonical class name.
|
CompressionCodec |
CompressionCodecFactory.getCodecByName(String codecName)
Find the relevant compression codec for the codec's canonical class name
or by codec alias.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends CompressionCodec> |
CompressionCodecFactory.getCodecClassByName(String codecName)
Find the relevant compression codec for the codec's canonical class name
or by codec alias and returns its implemetation class.
|
static List<Class<? extends CompressionCodec>> |
CompressionCodecFactory.getCodecClasses(Configuration conf)
Get the list of codecs discovered via a Java ServiceLoader, or
listed in the configuration.
|
Modifier and Type | Method and Description |
---|---|
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. |
static Decompressor |
CodecPool.getDecompressor(CompressionCodec codec)
Get a
Decompressor for the given CompressionCodec from the
pool or a new one. |
static int |
CodecPool.getLeasedCompressorsCount(CompressionCodec codec)
Return the number of leased
Compressor s for this
CompressionCodec |
static int |
CodecPool.getLeasedDecompressorsCount(CompressionCodec codec)
Return the number of leased
Decompressor s for this
CompressionCodec |
Copyright © 2017 Apache Software Foundation. All Rights Reserved.