org.apache.hadoop.hbase.regionserver
Class ReadWriteConsistencyControl

java.lang.Object
  extended by 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).


Nested Class Summary
static class ReadWriteConsistencyControl.WriteEntry
           
 
Constructor Summary
ReadWriteConsistencyControl()
           
 
Method Summary
 ReadWriteConsistencyControl.WriteEntry beginMemstoreInsert()
           
 void completeMemstoreInsert(ReadWriteConsistencyControl.WriteEntry e)
           
static long getThreadReadPoint()
           
 long memstoreReadPoint()
           
static long resetThreadReadPoint(ReadWriteConsistencyControl rwcc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWriteConsistencyControl

public ReadWriteConsistencyControl()
Method Detail

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