Package com.qfs.index
Interface IIntegerArrayTransaction
-
- All Superinterfaces:
IIntegerArray,ITransaction,IWritableIntegerArray
- All Known Implementing Classes:
IntegerArrayTransaction
public interface IIntegerArrayTransaction extends ITransaction, IWritableIntegerArray
A transaction on anIIntegerArraythat contains the transient, writable state of the array.The state is defined as the
deltawith 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description gnu.trove.map.TIntIntMapgetDelta()Returns the delta object containing the old values for this transaction.gnu.trove.map.TIntIntMapgetNewDelta()Returns the delta object containing the new values for this transaction.voidreset()Empties the array.-
Methods inherited from interface com.qfs.index.IIntegerArray
getEmptyValue, getValue, size, transferValues
-
Methods inherited from interface com.qfs.multiversion.ITransaction
commit, isEmpty, prepareCommit, rollback
-
Methods inherited from interface com.qfs.index.IWritableIntegerArray
set
-
-
-
-
Method Detail
-
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.
-
-