public class ZlibFactory extends Object
构造器和说明 |
---|
ZlibFactory() |
限定符和类型 | 方法和说明 |
---|---|
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) |
public static boolean isNativeZlibLoaded(Configuration conf)
conf
- configurationtrue
if native-zlib is loaded & initialized
and can be loaded for this job, else false
public static Class<? extends Compressor> getZlibCompressorType(Configuration conf)
conf
- configurationpublic static Compressor getZlibCompressor(Configuration conf)
conf
- configurationpublic static Class<? extends Decompressor> getZlibDecompressorType(Configuration conf)
conf
- configurationpublic static Decompressor getZlibDecompressor(Configuration conf)
conf
- configurationpublic 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)
Copyright © 2009 The Apache Software Foundation