org.apache.hadoop.hbase.io.hfile
Class HFileBlockIndex

java.lang.Object
  extended by org.apache.hadoop.hbase.io.hfile.HFileBlockIndex

@InterfaceAudience.Private
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.


Nested Class Summary
static class HFileBlockIndex.BlockIndexReader
          The reader will always hold the root level index in the memory.
static class HFileBlockIndex.BlockIndexWriter
          Writes the block index into the output stream.
 
Field Summary
static String MAX_CHUNK_SIZE_KEY
          The maximum size guideline for index blocks (both leaf, intermediate, and root).
 
Constructor Summary
HFileBlockIndex()
           
 
Method Summary
static int getMaxChunkSize(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HFileBlockIndex

public HFileBlockIndex()
Method Detail

getMaxChunkSize

public static int getMaxChunkSize(org.apache.hadoop.conf.Configuration conf)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.