Class Bzip2Factory
java.lang.Object
org.apache.hadoop.io.compress.bzip2.Bzip2Factory
A collection of factories to create the right
bzip2 compressor/decompressor instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBlockSize(Configuration conf) static CompressorReturn the appropriate implementation of the bzip2 compressor.static Class<? extends Compressor>Return the appropriate type of the bzip2 compressor.static DecompressorReturn the appropriate implementation of the bzip2 decompressor.static Class<? extends Decompressor>Return the appropriate type of the bzip2 decompressor.static StringgetLibraryName(Configuration conf) static intgetWorkFactor(Configuration conf) static booleanCheck if native-bzip2 code is loaded & initialized correctly and can be loaded for this job.static voidsetBlockSize(Configuration conf, int blockSize) static voidsetWorkFactor(Configuration conf, int workFactor)
-
Constructor Details
-
Bzip2Factory
public Bzip2Factory()
-
-
Method Details
-
isNativeBzip2Loaded
Check if native-bzip2 code is loaded & initialized correctly and can be loaded for this job.- Parameters:
conf- configuration- Returns:
trueif native-bzip2 is loaded & initialized and can be loaded for this job, elsefalse
-
getLibraryName
-
getBzip2CompressorType
Return the appropriate type of the bzip2 compressor.- Parameters:
conf- configuration- Returns:
- the appropriate type of the bzip2 compressor.
-
getBzip2Compressor
Return the appropriate implementation of the bzip2 compressor.- Parameters:
conf- configuration- Returns:
- the appropriate implementation of the bzip2 compressor.
-
getBzip2DecompressorType
Return the appropriate type of the bzip2 decompressor.- Parameters:
conf- configuration- Returns:
- the appropriate type of the bzip2 decompressor.
-
getBzip2Decompressor
Return the appropriate implementation of the bzip2 decompressor.- Parameters:
conf- configuration- Returns:
- the appropriate implementation of the bzip2 decompressor.
-
setBlockSize
-
getBlockSize
-
setWorkFactor
-
getWorkFactor
-