public class Bzip2Factory
extends java.lang.Object
| Constructor | Description |
|---|---|
Bzip2Factory() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getBlockSize(Configuration conf) |
|
static Compressor |
getBzip2Compressor(Configuration conf) |
Return the appropriate implementation of the bzip2 compressor.
|
static java.lang.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 java.lang.Class<? extends Decompressor> |
getBzip2DecompressorType(Configuration conf) |
Return the appropriate type of the bzip2 decompressor.
|
static java.lang.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 java.lang.String getLibraryName(Configuration conf)
public static java.lang.Class<? extends Compressor> getBzip2CompressorType(Configuration conf)
conf - configurationpublic static Compressor getBzip2Compressor(Configuration conf)
conf - configurationpublic static java.lang.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 © 2008–2025 Apache Software Foundation. All rights reserved.