Enum IndexBlockEncoding
- All Implemented Interfaces:
- Serializable,- Comparable<IndexBlockEncoding>
Provide access to all index block encoding algorithms. All of the algorithms are required to have
 unique id which should NEVER be changed. If you want to add a new algorithm/version,
 assign it a new id. Announce the new id in the HBase mailing list to prevent collisions.
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Stringprivate final shortstatic final intprivate static IndexBlockEncoding[]Maps data block encoding ids to enum instances.private final byte[]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic IndexBlockEncodinggetEncodingById(short indexBlockEncodingId) shortgetId()Returns The id of a data block encoder.static StringgetNameFromId(short encoderId) Find and return the name of data block encoder for the given id.byte[]Returns name converted to bytes.static IndexBlockEncodingReturns the enum constant of this type with the specified name.static IndexBlockEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.voidwriteIdInBytes(byte[] dest, int offset) Writes id bytes to the given array starting from offset.voidwriteIdInBytes(OutputStream stream) Writes id in bytes.
- 
Enum Constant Details- 
NONEDisable index block encoding.
- 
PREFIX_TREE
 
- 
- 
Field Details- 
id
- 
idInBytes
- 
encoderCls
- 
ID_SIZE- See Also:
 
- 
idArrayMaps data block encoding ids to enum instances.
 
- 
- 
Constructor Details- 
IndexBlockEncoding
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getNameInBytesReturns name converted to bytes.
- 
getIdReturns The id of a data block encoder.
- 
writeIdInBytesWrites id in bytes.- Parameters:
- stream- where the id should be written.
- Throws:
- IOException
 
- 
writeIdInBytesWrites id bytes to the given array starting from offset.- Parameters:
- dest- output array
- offset- starting offset of the output array
- Throws:
- IOException
 
- 
getNameFromIdFind and return the name of data block encoder for the given id.- Parameters:
- encoderId- id of data block encoder
- Returns:
- name, same as used in options in column family
 
- 
getEncodingById
 
-