Package org.apache.hadoop.hbase.io.hfile
Interface HFileIndexBlockEncoder
- All Known Implementing Classes:
HFileIndexBlockEncoderImpl
,NoOpIndexBlockEncoder
Controls what kind of index block encoding is used. If index block encoding is not set or the
given block is not a index block (encoded or not), methods should just return the unmodified
block.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte[]
Type of encoding used for index blocks in HFile. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 disk
-
Field Details
-
INDEX_BLOCK_ENCODING
Type of encoding used for index blocks in HFile. Stored in file info.
-
-
Method Details
-
saveMetadata
Save metadata in HFile which will be written to disk- Parameters:
writer
- writer for a given HFile- Throws:
IOException
- on disk problems
-
encode
void encode(BlockIndexChunk blockIndexChunk, boolean rootIndexBlock, DataOutput out) throws IOException - Throws:
IOException
-
getIndexBlockEncoding
Returns the index block encoding -
createSeeker
-