|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Codecs>
org.springframework.data.hadoop.store.codec.Codecs
public enum Codecs
Default codecs supported by store framework. We keep codec info here for implementations which are supported out of the box. Reference to codec is a fully qualified name of a class, not a class itself. This allows user to define and use codecs which are added into a classpath unknown during the compilation time.
This enum also allows case insensitive lookup for main abbreviation. Defined abbreviations strings in a constructor are just keywords to do back mapping from a lookup table. Registering a mixing abbreviations is not checked.
Codecs.get("gzip").getAbbreviation(); -> "GZIP"
| Enum Constant Summary | |
|---|---|
BZIP2
Splittable BZip2Codec. |
|
GZIP
Non-splittable GzipCodec. |
|
LZO
Non-splittable LzoCodec. |
|
LZOP
Non-splittable LzopCodec. |
|
SLZO
Splittable LzoCodec. |
|
SLZOP
Splittable LzoCodec. |
|
SNAPPY
Non-splittable SnappyCodec. |
|
| Method Summary | |
|---|---|
static Codecs |
get(java.lang.String abbreviation)
Gets the Codecs by its abbreviation. |
java.lang.String |
getAbbreviation()
Gets the main abbreviation. |
java.lang.String[] |
getAbbreviations()
Gets the abbreviations. |
CodecInfo |
getCodecInfo()
Gets the codec info. |
static CodecInfo |
getCodecInfo(java.lang.String abbreviation)
Gets the CodecInfo by Codecs abbreviation. |
static Codecs |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Codecs[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Codecs GZIP
GzipCodec.
public static final Codecs SNAPPY
SnappyCodec. This codec will need native snappy libraries.
public static final Codecs BZIP2
BZip2Codec.
public static final Codecs LZO
LzoCodec. This codec should be based on implementation from
http://code.google.com/p/hadoop-gpl-compression.
public static final Codecs SLZO
LzoCodec. This codec should be based on implementation from
http://github.com/kevinweil/hadoop-lzo.
public static final Codecs LZOP
LzopCodec. This codec should be based on implementation from
http://code.google.com/p/hadoop-gpl-compression.
public static final Codecs SLZOP
LzoCodec. This codec should be based on implementation from
http://github.com/kevinweil/hadoop-lzo.
| Method Detail |
|---|
public static Codecs[] values()
for (Codecs c : Codecs.values()) System.out.println(c);
public static Codecs valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic CodecInfo getCodecInfo()
public java.lang.String getAbbreviation()
public java.lang.String[] getAbbreviations()
public static Codecs get(java.lang.String abbreviation)
Codecs by its abbreviation. Lookup returns NULL if abbreviation hasn't been
registered.
abbreviation - the abbreviation
public static CodecInfo getCodecInfo(java.lang.String abbreviation)
CodecInfo by Codecs abbreviation. Lookup returns NULL if abbreviation
hasn't been registered.
abbreviation - the abbreviation
get(String)
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||