@InterfaceAudience.Private public class HFileIndexBlockEncoderImpl extends Object implements HFileIndexBlockEncoder
HFileIndexBlockEncoder.EncodedSeekerINDEX_BLOCK_ENCODING| Constructor and Description |
|---|
HFileIndexBlockEncoderImpl(IndexBlockEncoding encoding)
Do index block encoding with specified options.
|
| Modifier and Type | Method and Description |
|---|---|
static HFileIndexBlockEncoder |
createFromFileInfo(HFileInfo fileInfo) |
HFileIndexBlockEncoder.EncodedSeeker |
createSeeker() |
void |
encode(BlockIndexChunk blockIndexChunk,
boolean rootIndexBlock,
DataOutput out) |
IndexBlockEncoding |
getIndexBlockEncoding()
Returns the index block encoding
|
void |
saveMetadata(HFile.Writer writer)
Save metadata in HFile which will be written to disk
|
String |
toString() |
public HFileIndexBlockEncoderImpl(IndexBlockEncoding encoding)
encoding - What kind of data block encoding will be used.public static HFileIndexBlockEncoder createFromFileInfo(HFileInfo fileInfo) throws IOException
IOExceptionpublic void saveMetadata(HFile.Writer writer) throws IOException
HFileIndexBlockEncodersaveMetadata in interface HFileIndexBlockEncoderwriter - writer for a given HFileIOException - on disk problemspublic IndexBlockEncoding getIndexBlockEncoding()
HFileIndexBlockEncodergetIndexBlockEncoding in interface HFileIndexBlockEncoderpublic void encode(BlockIndexChunk blockIndexChunk, boolean rootIndexBlock, DataOutput out) throws IOException
encode in interface HFileIndexBlockEncoderIOExceptionpublic HFileIndexBlockEncoder.EncodedSeeker createSeeker()
createSeeker in interface HFileIndexBlockEncoderCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.