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
Fields inherited from interface org.apache.hadoop.hbase.io.hfile.HFileIndexBlockEncoder
INDEX_BLOCK_ENCODING
-
Constructor Summary
ConstructorDescriptionHFileIndexBlockEncoderImpl
(IndexBlockEncoding encoding) Do index block encoding with specified options. -
Method Summary
Modifier and TypeMethodDescriptionstatic HFileIndexBlockEncoder
createFromFileInfo
(HFileInfo fileInfo) void
encode
(BlockIndexChunk blockIndexChunk, boolean rootIndexBlock, DataOutput out) Returns the index block encodingvoid
saveMetadata
(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:HFileIndexBlockEncoder
Save metadata in HFile which will be written to disk- Specified by:
saveMetadata
in interfaceHFileIndexBlockEncoder
- Parameters:
writer
- writer for a given HFile- Throws:
IOException
- on disk problems
-
getIndexBlockEncoding
Description copied from interface:HFileIndexBlockEncoder
Returns the index block encoding- Specified by:
getIndexBlockEncoding
in interfaceHFileIndexBlockEncoder
-
encode
public void encode(BlockIndexChunk blockIndexChunk, boolean rootIndexBlock, DataOutput out) throws IOException - Specified by:
encode
in interfaceHFileIndexBlockEncoder
- Throws:
IOException
-
createSeeker
- Specified by:
createSeeker
in interfaceHFileIndexBlockEncoder
-
toString
-