|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.io.CodecMap
public final class CodecMap
Provides a mapping from codec names to concrete implementation class names. This is used by LobFile.
Field Summary | |
---|---|
static java.lang.String |
DEFLATE
|
static java.lang.String |
LZO
|
static java.lang.String |
NONE
|
Method Summary | |
---|---|
static org.apache.hadoop.io.compress.CompressionCodec |
getCodec(java.lang.String codecName,
org.apache.hadoop.conf.Configuration conf)
Given a codec name, instantiate the concrete implementation class that implements it. |
static java.lang.String |
getCodecClassName(java.lang.String codecName)
Given a codec name, return the name of the concrete class that implements it (or 'null' in the case of the "none" codec). |
static java.util.Set<java.lang.String> |
getCodecNames()
Return the set of available codec names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NONE
public static final java.lang.String DEFLATE
public static final java.lang.String LZO
Method Detail |
---|
public static java.lang.String getCodecClassName(java.lang.String codecName) throws UnsupportedCodecException
UnsupportedCodecException
- if a codec cannot be found
with the supplied name.public static org.apache.hadoop.io.compress.CompressionCodec getCodec(java.lang.String codecName, org.apache.hadoop.conf.Configuration conf) throws UnsupportedCodecException
UnsupportedCodecException
- if a codec cannot be found
with the supplied name.public static java.util.Set<java.lang.String> getCodecNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |