Package org.apache.hadoop.hbase.io.hfile
Class HFileIndexBlockEncoderImpl
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileIndexBlockEncoderImpl
- All Implemented Interfaces:
HFileIndexBlockEncoder
Do different kinds of index block encoding according to column family options.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.io.hfile.HFileIndexBlockEncoder
HFileIndexBlockEncoder.EncodedSeeker -
Field Summary
FieldsFields inherited from interface org.apache.hadoop.hbase.io.hfile.HFileIndexBlockEncoder
INDEX_BLOCK_ENCODING -
Constructor Summary
ConstructorsConstructorDescriptionHFileIndexBlockEncoderImpl(IndexBlockEncoding encoding) Do index block encoding with specified options. -
Method Summary
Modifier and TypeMethodDescriptionstatic HFileIndexBlockEncodercreateFromFileInfo(HFileInfo fileInfo) voidencode(BlockIndexChunk blockIndexChunk, boolean rootIndexBlock, DataOutput out) Returns the index block encodingvoidsaveMetadata(HFile.Writer writer) Save metadata in HFile which will be written to disktoString()
-
Field Details
-
indexBlockEncoding
-
-
Constructor Details
-
HFileIndexBlockEncoderImpl
Do index block encoding with specified options.- Parameters:
encoding- What kind of data block encoding will be used.
-
-
Method Details
-
createFromFileInfo
- Throws:
IOException
-
saveMetadata
Description copied from interface:HFileIndexBlockEncoderSave metadata in HFile which will be written to disk- Specified by:
saveMetadatain interfaceHFileIndexBlockEncoder- Parameters:
writer- writer for a given HFile- Throws:
IOException- on disk problems
-
getIndexBlockEncoding
Description copied from interface:HFileIndexBlockEncoderReturns the index block encoding- Specified by:
getIndexBlockEncodingin interfaceHFileIndexBlockEncoder
-
encode
public void encode(BlockIndexChunk blockIndexChunk, boolean rootIndexBlock, DataOutput out) throws IOException - Specified by:
encodein interfaceHFileIndexBlockEncoder- Throws:
IOException
-
createSeeker
- Specified by:
createSeekerin interfaceHFileIndexBlockEncoder
-
toString
-