|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.compress.zlib.ZlibFactory
public class ZlibFactory
A collection of factories to create the right zlib/gzip compressor/decompressor instances.
Constructor Summary | |
---|---|
ZlibFactory()
|
Method Summary | |
---|---|
static ZlibCompressor.CompressionLevel |
getCompressionLevel(Configuration conf)
|
static ZlibCompressor.CompressionStrategy |
getCompressionStrategy(Configuration conf)
|
static Compressor |
getZlibCompressor(Configuration conf)
Return the appropriate implementation of the zlib compressor. |
static Class<? extends Compressor> |
getZlibCompressorType(Configuration conf)
Return the appropriate type of the zlib compressor. |
static Decompressor |
getZlibDecompressor(Configuration conf)
Return the appropriate implementation of the zlib decompressor. |
static Class<? extends Decompressor> |
getZlibDecompressorType(Configuration conf)
Return the appropriate type of the zlib decompressor. |
static boolean |
isNativeZlibLoaded(Configuration conf)
Check if native-zlib code is loaded & initialized correctly and can be loaded for this job. |
static void |
setCompressionLevel(Configuration conf,
ZlibCompressor.CompressionLevel level)
|
static void |
setCompressionStrategy(Configuration conf,
ZlibCompressor.CompressionStrategy strategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZlibFactory()
Method Detail |
---|
public static boolean isNativeZlibLoaded(Configuration conf)
conf
- configuration
true
if native-zlib is loaded & initialized
and can be loaded for this job, else false
public static Class<? extends Compressor> getZlibCompressorType(Configuration conf)
conf
- configuration
public static Compressor getZlibCompressor(Configuration conf)
conf
- configuration
public static Class<? extends Decompressor> getZlibDecompressorType(Configuration conf)
conf
- configuration
public static Decompressor getZlibDecompressor(Configuration conf)
conf
- configuration
public static void setCompressionStrategy(Configuration conf, ZlibCompressor.CompressionStrategy strategy)
public static ZlibCompressor.CompressionStrategy getCompressionStrategy(Configuration conf)
public static void setCompressionLevel(Configuration conf, ZlibCompressor.CompressionLevel level)
public static ZlibCompressor.CompressionLevel getCompressionLevel(Configuration conf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |