com.cloudera.sqoop.io
Class CodecMap

java.lang.Object
  extended by com.cloudera.sqoop.io.CodecMap

public final class CodecMap
extends java.lang.Object

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

NONE

public static final java.lang.String NONE
See Also:
Constant Field Values

DEFLATE

public static final java.lang.String DEFLATE
See Also:
Constant Field Values

LZO

public static final java.lang.String LZO
See Also:
Constant Field Values
Method Detail

getCodecClassName

public static java.lang.String getCodecClassName(java.lang.String codecName)
                                          throws UnsupportedCodecException
Given a codec name, return the name of the concrete class that implements it (or 'null' in the case of the "none" codec).

Throws:
UnsupportedCodecException - if a codec cannot be found with the supplied name.

getCodec

public static org.apache.hadoop.io.compress.CompressionCodec getCodec(java.lang.String codecName,
                                                                      org.apache.hadoop.conf.Configuration conf)
                                                               throws UnsupportedCodecException
Given a codec name, instantiate the concrete implementation class that implements it.

Throws:
UnsupportedCodecException - if a codec cannot be found with the supplied name.

getCodecNames

public static java.util.Set<java.lang.String> getCodecNames()
Return the set of available codec names.



Copyright © 2010 Cloudera, Inc.