|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.compression.CodecFactory
public class CodecFactory
Utility class for maintaining list of codecs and providing facility for compressing and decompressing.
| Field Summary | |
|---|---|
static String |
COMPRESSION_CODECS
|
static String |
COMPRESSION_KEY_HEADER
|
static String |
COMPRESSION_MAGIC_DATA
|
static String |
COMPRESSION_OUTPUT_CODEC
|
static String |
UTF_8_ENCODING
|
| Constructor Summary | |
|---|---|
CodecFactory()
|
|
| Method Summary | |
|---|---|
static CompressionCodec |
getCompressionCodec()
Get output compression codec |
static CompressionCodec |
getDeCompressionCodec(DataInputStream dais)
Get decompression codec after reading from stream |
static byte[] |
getHeaderBytes()
Get header bytes |
static void |
initialize(org.apache.hadoop.conf.Configuration conf)
Initialize the codec factory to maintain list of codecs |
static boolean |
isCompressionEnabled()
Check whether compression is enabled or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COMPRESSION_CODECS
public static final String COMPRESSION_OUTPUT_CODEC
public static final String COMPRESSION_MAGIC_DATA
public static final String COMPRESSION_KEY_HEADER
public static final String UTF_8_ENCODING
| Constructor Detail |
|---|
public CodecFactory()
| Method Detail |
|---|
public static void initialize(org.apache.hadoop.conf.Configuration conf)
throws Exception
conf -
Exceptionpublic static boolean isCompressionEnabled()
public static CompressionCodec getDeCompressionCodec(DataInputStream dais)
throws IOException
dais - the input stream
IOExceptionpublic static CompressionCodec getCompressionCodec()
public static byte[] getHeaderBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||