public interface TransactionSetInterface
Modifier and Type | Method and Description |
---|---|
void |
Close()
Close the seesion
|
boolean |
contains(TransactionId transactionId,
java.lang.Comparable o)
Contains a value object
|
java.lang.Object |
first(TransactionId transactionId)
Get the value of the object associated with first key
|
java.lang.Object |
get(TransactionId transactionId,
java.lang.Comparable o)
Cause the b seekKey for the Comparable type.
|
java.lang.String |
getDBName() |
java.lang.Object |
getForUpdate(TransactionId transactionId,
java.lang.Comparable o,
boolean exclusive)
Read a key and make the key value a precondition for commit.
|
java.lang.Object |
getMutexObject() |
Session |
getSession() |
boolean |
isEmpty(TransactionId transactionId)
Is the KVStore empty?
|
java.util.Iterator<?> |
iterator(TransactionId transactionId)
Returns iterator
|
java.lang.Object |
last(TransactionId transactionId)
Get the last object associated with greatest valued key in the KVStore
|
void |
Open()
Open the files associated with the BTree for the instances of class
|
java.lang.Object |
remove(TransactionId transactionId,
java.lang.Comparable o)
Remove the key and value of the parameter.
|
long |
size(TransactionId transactionId)
Get the number of keys total.
|
void |
undoGetForUpdate(TransactionId transactionId,
java.lang.Comparable o)
Inform the transaction that it no longer needs to do any conflict checking for this key.
|
java.lang.String getDBName()
java.lang.Object getMutexObject()
java.lang.Object get(TransactionId transactionId, java.lang.Comparable o) throws java.io.IOException
transactionId
- the transaction Ido
- the Comparable object to seek.java.io.IOException
java.lang.Object getForUpdate(TransactionId transactionId, java.lang.Comparable o, boolean exclusive) throws java.io.IOException
transactionId
- Transaction Ido
- key to getexclusive
- true to get exclusive accessjava.io.IOException
void undoGetForUpdate(TransactionId transactionId, java.lang.Comparable o) throws java.io.IOException
transactionId
- Transaction Ido
- key to undojava.io.IOException
java.util.Iterator<?> iterator(TransactionId transactionId) throws java.io.IOException
transactionId
- Transaction Idjava.io.IOException
- If we cannot obtain the iteratorboolean contains(TransactionId transactionId, java.lang.Comparable o) throws java.io.IOException
transactionId
- Transaction Ido
- java.io.IOException
java.lang.Object remove(TransactionId transactionId, java.lang.Comparable o) throws java.io.IOException
transactionId
- Transaction Ido
- The object to removejava.io.IOException
java.lang.Object first(TransactionId transactionId) throws java.io.IOException
transactionId
- Transaction Idjava.io.IOException
java.lang.Object last(TransactionId transactionId) throws java.io.IOException
transactionId
- Transaction Idjava.io.IOException
long size(TransactionId transactionId) throws java.io.IOException
transactionId
- Transaction Idjava.io.IOException
boolean isEmpty(TransactionId transactionId) throws java.io.IOException
transactionId
- Transaction Idjava.io.IOException
void Open() throws java.io.IOException
java.io.IOException
void Close() throws java.io.IOException
java.io.IOException
Session getSession() throws java.io.IOException
java.io.IOException