TupleMapType - the type of the internal structure holding table dataTupleType - the type of tuple in which a subclass of this class transactspublic abstract class PMapTupleTable<TupleMapType,TupleType> extends Object implements TupleTable<TupleType>
TupleTable that contains some common state management.| Constructor and Description |
|---|
PMapTupleTable(String n) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(ReadWrite rw)
Start either a READ or WRITE transaction
|
void |
clear()
Clear all tuples from this table.
|
void |
commit()
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)
|
void |
end()
Finish the transaction - if a write transaction and commit() has not been called, then abort
|
boolean |
isInTransaction()
Say whether inside a transaction.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, add, deletepublic PMapTupleTable(String n)
n - a name for this tablepublic boolean isInTransaction()
TransactionalisInTransaction in interface Transactionalpublic void begin(ReadWrite rw)
Transactionalbegin in interface Transactionalpublic void end()
Transactionalend in interface Transactionalpublic void commit()
Transactionalcommit in interface Transactionalpublic void clear()
TupleTableclear in interface TupleTable<TupleType>Licenced under the Apache License, Version 2.0