public class MultiVersionConsistencyControl extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MultiVersionConsistencyControl.WriteEntry |
Modifier and Type | Field and Description |
---|---|
static long |
FIXED_SIZE |
Constructor and Description |
---|
MultiVersionConsistencyControl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
MultiVersionConsistencyControl.WriteEntry |
beginMemstoreInsert() |
void |
completeMemstoreInsert(MultiVersionConsistencyControl.WriteEntry e) |
static long |
getThreadReadPoint()
Get this thread's read point.
|
void |
initialize(long startPoint)
Initializes the memstoreRead/Write points appropriately.
|
long |
memstoreReadPoint() |
static void |
resetThreadReadPoint()
Set the thread MVCC read point to 0 (include everything).
|
static long |
resetThreadReadPoint(MultiVersionConsistencyControl mvcc)
Set the thread MVCC read point to whatever the current read point is in
this particular instance of MVCC.
|
static void |
setThreadReadPoint(long readPoint)
Set the thread read point to the given value.
|
void |
waitForRead(MultiVersionConsistencyControl.WriteEntry e)
Wait for the global readPoint to advance upto
the specified transaction number.
|
public MultiVersionConsistencyControl()
public void initialize(long startPoint)
startPoint
- public static long getThreadReadPoint()
public static void setThreadReadPoint(long readPoint)
public static long resetThreadReadPoint(MultiVersionConsistencyControl mvcc)
public static void resetThreadReadPoint()
public MultiVersionConsistencyControl.WriteEntry beginMemstoreInsert()
public void completeMemstoreInsert(MultiVersionConsistencyControl.WriteEntry e)
public void waitForRead(MultiVersionConsistencyControl.WriteEntry e)
public long memstoreReadPoint()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.