Package com.qfs.index
Interface IIntegerArrayTransaction
- All Superinterfaces:
IIntegerArray,ITransaction,IWritableIntegerArray
- All Known Implementing Classes:
IntegerArrayTransaction
A transaction on an
IIntegerArray that contains the transient, writable state of the array.
The state is defined as the delta with respect to a base array.
The base array is never modified by those writes.
The writes are propagated to the base array only when and if the transaction is committed.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.index.IIntegerArray
DEFAULT_EMPTY_VALUE -
Method Summary
Methods inherited from interface com.qfs.index.IIntegerArray
getEmptyValue, getValue, size, transferValuesMethods inherited from interface com.qfs.multiversion.ITransaction
commit, isEmpty, prepareCommit, rollbackMethods inherited from interface com.qfs.index.IWritableIntegerArray
set
-
Method Details
-
getDelta
gnu.trove.map.TIntIntMap getDelta()Returns the delta object containing the old values for this transaction.The delta object is a
mappingfrom a row ID to the old value for this row.- Returns:
- the delta
-
getNewDelta
gnu.trove.map.TIntIntMap getNewDelta()Returns the delta object containing the new values for this transaction.The delta object is a
mappingfrom a row ID to the new value for this row.- Returns:
- the delta
-
reset
void reset()Empties the array.Its
sizewill be set to0.
-