org.apache.hadoop.hbase.regionserver
Class ReadWriteConsistencyControl
java.lang.Object
org.apache.hadoop.hbase.regionserver.ReadWriteConsistencyControl
public class ReadWriteConsistencyControl
- extends Object
Manages the read/write consistency within memstore. This provides
an interface for readers to determine what entries to ignore, and
a mechanism for writers to obtain new write numbers, then "commit"
the new writes for readers to read (thus forming atomic transactions).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadWriteConsistencyControl
public ReadWriteConsistencyControl()
getThreadReadPoint
public static long getThreadReadPoint()
resetThreadReadPoint
public static long resetThreadReadPoint(ReadWriteConsistencyControl rwcc)
beginMemstoreInsert
public ReadWriteConsistencyControl.WriteEntry beginMemstoreInsert()
completeMemstoreInsert
public void completeMemstoreInsert(ReadWriteConsistencyControl.WriteEntry e)
memstoreReadPoint
public long memstoreReadPoint()
Copyright © 2010 The Apache Software Foundation