public class Bzip2Factory extends Object
| Constructor and Description |
|---|
Bzip2Factory() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getBlockSize(Configuration conf) |
static Compressor |
getBzip2Compressor(Configuration conf)
Return the appropriate implementation of the bzip2 compressor.
|
static Class<? extends Compressor> |
getBzip2CompressorType(Configuration conf)
Return the appropriate type of the bzip2 compressor.
|
static Decompressor |
getBzip2Decompressor(Configuration conf)
Return the appropriate implementation of the bzip2 decompressor.
|
static Class<? extends Decompressor> |
getBzip2DecompressorType(Configuration conf)
Return the appropriate type of the bzip2 decompressor.
|
static String |
getLibraryName(Configuration conf) |
static int |
getWorkFactor(Configuration conf) |
static boolean |
isNativeBzip2Loaded(Configuration conf)
Check if native-bzip2 code is loaded & initialized correctly and
can be loaded for this job.
|
static void |
setBlockSize(Configuration conf,
int blockSize) |
static void |
setWorkFactor(Configuration conf,
int workFactor) |
public static boolean isNativeBzip2Loaded(Configuration conf)
conf - configurationtrue if native-bzip2 is loaded & initialized
and can be loaded for this job, else falsepublic static String getLibraryName(Configuration conf)
public static Class<? extends Compressor> getBzip2CompressorType(Configuration conf)
conf - configurationpublic static Compressor getBzip2Compressor(Configuration conf)
conf - configurationpublic static Class<? extends Decompressor> getBzip2DecompressorType(Configuration conf)
conf - configurationpublic static Decompressor getBzip2Decompressor(Configuration conf)
conf - configurationpublic static void setBlockSize(Configuration conf, int blockSize)
public static int getBlockSize(Configuration conf)
public static void setWorkFactor(Configuration conf, int workFactor)
public static int getWorkFactor(Configuration conf)
Copyright © 2013 Apache Software Foundation. All rights reserved.