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, wait
abort, add, delete
public PMapTupleTable(String n)
n
- a name for this tablepublic boolean isInTransaction()
Transactional
isInTransaction
in interface Transactional
public void begin(ReadWrite rw)
Transactional
begin
in interface Transactional
public void end()
Transactional
end
in interface Transactional
public void commit()
Transactional
commit
in interface Transactional
public void clear()
TupleTable
clear
in interface TupleTable<TupleType>
Licenced under the Apache License, Version 2.0