org.apache.hadoop.hbase
Class HStore

java.lang.Object
  extended by org.apache.hadoop.hbase.HStore
All Implemented Interfaces:
HConstants

public class HStore
extends Object
implements HConstants

HStore maintains a bunch of data files. It is responsible for maintaining the memory/file hierarchy and for periodic flushes to disk and compacting edits to the file. Locking and transactions are handled at a higher level. This API should not be called directly by any writer, but rather by an HRegion manager.


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.HConstants
ALL_META_COLUMNS, ALL_VERSIONS, COL_REGIONINFO, COL_REGIONINFO_ARRAY, COL_SERVER, COL_SPLITA, COL_SPLITB, COL_STARTCODE, COLUMN_FAMILY, COLUMN_FAMILY_ARRAY, COLUMN_FAMILY_STR, DEFAULT_HBASE_DIR, DEFAULT_HOST, DEFAULT_MASTER_ADDRESS, DEFAULT_MASTER_INFOPORT, DEFAULT_MASTER_PORT, DEFAULT_MAX_FILE_SIZE, DEFAULT_REGION_SERVER_CLASS, DEFAULT_REGIONSERVER_ADDRESS, DEFAULT_REGIONSERVER_INFOPORT, EMPTY_START_ROW, EMPTY_TEXT, FILE_SYSTEM_VERSION, HBASE_DIR, HREGION_LOGDIR_NAME, HREGION_OLDLOGFILE_NAME, LATEST_TIMESTAMP, MASTER_ADDRESS, META_TABLE_NAME, REGION_SERVER_CLASS, REGIONSERVER_ADDRESS, ROOT_TABLE_NAME, THREAD_WAKE_FREQUENCY, UTF8_ENCODING, VERSION_FILE_NAME
 
Method Summary
 Text getRowKeyAtOrBefore(Text row, long timestamp)
          Find the key that matches row exactly, or the one that immediately preceeds it.
static boolean isReference(Path p)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRowKeyAtOrBefore

public Text getRowKeyAtOrBefore(Text row,
                                long timestamp)
                         throws IOException
Find the key that matches row exactly, or the one that immediately preceeds it.

Throws:
IOException

toString

public String toString()

Overrides:
toString in class Object

isReference

public static boolean isReference(Path p)
Parameters:
p - Path to check.
Returns:
True if the path has format of a HStoreFile reference.


Copyright © 2006 The Apache Software Foundation