|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.ReadWriteConsistencyControl
public class ReadWriteConsistencyControl
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).
Nested Class Summary | |
---|---|
static class |
ReadWriteConsistencyControl.WriteEntry
|
Constructor Summary | |
---|---|
ReadWriteConsistencyControl()
|
Method Summary | |
---|---|
ReadWriteConsistencyControl.WriteEntry |
beginMemstoreInsert()
|
void |
completeMemstoreInsert(ReadWriteConsistencyControl.WriteEntry e)
|
static long |
getThreadReadPoint()
Get this thread's read point. |
long |
memstoreReadPoint()
|
static void |
resetThreadReadPoint()
Set the thread RWCC read point to 0 (include everything). |
static long |
resetThreadReadPoint(ReadWriteConsistencyControl rwcc)
Set the thread RWCC read point to whatever the current read point is in this particular instance of RWCC. |
static void |
setThreadReadPoint(long readPoint)
Set the thread read point to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadWriteConsistencyControl()
Method Detail |
---|
public static long getThreadReadPoint()
public static void setThreadReadPoint(long readPoint)
public static long resetThreadReadPoint(ReadWriteConsistencyControl rwcc)
public static void resetThreadReadPoint()
public ReadWriteConsistencyControl.WriteEntry beginMemstoreInsert()
public void completeMemstoreInsert(ReadWriteConsistencyControl.WriteEntry e)
public long memstoreReadPoint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |