|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ChecksumType>
org.apache.hadoop.hbase.util.ChecksumType
public enum ChecksumType
Checksum types. The Checksum type is a one byte number that stores a representation of the checksum algorithm used to encode a hfile. The ordinal of these cannot change or else you risk breaking all existing HFiles out there.
| Enum Constant Summary | |
|---|---|
CRC32
|
|
CRC32C
|
|
NULL
|
|
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
LOG
|
| Method Summary | |
|---|---|
static ChecksumType |
codeToType(byte b)
Cannot rely on enum ordinals . |
abstract Checksum |
getChecksumObject()
returns a object that can be used to generate/validate checksums |
byte |
getCode()
|
abstract String |
getName()
returns the name of this checksum type |
static ChecksumType |
nameToType(String name)
Map a checksum name to a specific type. |
static ChecksumType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ChecksumType[] |
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 ChecksumType NULL
public static final ChecksumType CRC32
public static final ChecksumType CRC32C
| Field Detail |
|---|
protected org.apache.commons.logging.Log LOG
| Method Detail |
|---|
public static ChecksumType[] values()
for (ChecksumType c : ChecksumType.values()) System.out.println(c);
public static ChecksumType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract String getName()
public abstract Checksum getChecksumObject()
throws IOException
IOExceptionpublic byte getCode()
public static ChecksumType codeToType(byte b)
b -
public static ChecksumType nameToType(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||