org.apache.hadoop.hbase.io.hfile
Class HFileBlockIndex
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileBlockIndex
public class HFileBlockIndex
- extends Object
Provides functionality to write (HFileBlockIndex.BlockIndexWriter) and read
(HFileBlockIndex.BlockIndexReader) single-level and multi-level block indexes.
Examples of how to use the block index writer can be found in
CompoundBloomFilterWriter and HFileWriterV2. Examples of how
to use the reader can be found in HFileReaderV2 and
TestHFileBlockIndex.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_CHUNK_SIZE_KEY
public static final String MAX_CHUNK_SIZE_KEY
- The maximum size guideline for index blocks (both leaf, intermediate, and
root). If not specified,
DEFAULT_MAX_CHUNK_SIZE is used.
- See Also:
- Constant Field Values
CACHE_INDEX_BLOCKS_ON_WRITE_KEY
public static final String CACHE_INDEX_BLOCKS_ON_WRITE_KEY
- Configuration key to cache leaf- and intermediate-level index blocks on
write.
- See Also:
- Constant Field Values
HFileBlockIndex
public HFileBlockIndex()
shouldCacheOnWrite
public static boolean shouldCacheOnWrite(org.apache.hadoop.conf.Configuration conf)
- Returns:
- true if the given configuration specifies that we should
cache-on-write index blocks
getMaxChunkSize
public static int getMaxChunkSize(org.apache.hadoop.conf.Configuration conf)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.