@InterfaceAudience.Private public class HFileBlockIndex extends Object
HFileBlockIndex.BlockIndexWriter) and read BlockIndexReader single-level
and multi-level block indexes. Examples of how to use the block index writer can be found in
CompoundBloomFilterWriter and HFileWriterImpl.
Examples of how to use the reader can be found in HFileReaderImpl and
org.apache.hadoop.hbase.io.hfile.TestHFileBlockIndex.| Modifier and Type | Class and Description |
|---|---|
static class |
HFileBlockIndex.BlockIndexWriter
Writes the block index into the output stream.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_CHUNK_SIZE_KEY
The maximum size guideline for index blocks (both leaf, intermediate, and root).
|
protected static int |
MID_KEY_METADATA_SIZE
The size of a meta-data record used for finding the mid-key in a multi-level index.
|
static String |
MIN_INDEX_NUM_ENTRIES_KEY
Minimum number of entries in a single index block.
|
| Constructor and Description |
|---|
HFileBlockIndex() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getMaxChunkSize(org.apache.hadoop.conf.Configuration conf) |
static int |
getMinIndexNumEntries(org.apache.hadoop.conf.Configuration conf) |
public static final String MAX_CHUNK_SIZE_KEY
DEFAULT_MAX_CHUNK_SIZE is used.public static final String MIN_INDEX_NUM_ENTRIES_KEY
protected static final int MID_KEY_METADATA_SIZE
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.