Package com.qfs.index
Interface ILongArrayTransaction
-
- All Superinterfaces:
ILongArray,ITransaction,IWritableLongArray
- All Known Implementing Classes:
LongArrayTransaction
public interface ILongArrayTransaction extends ITransaction, IWritableLongArray
A transaction on anILongArraythat 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.ILongArray
DEFAULT_EMPTY_VALUE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description gnu.trove.map.TIntLongMapgetDelta()Returns the delta object containing the old values for this transaction.gnu.trove.map.TIntLongMapgetNewDelta()Returns the delta object containing the new values for this transaction.voidreset()Empties the array.-
Methods inherited from interface com.qfs.index.ILongArray
getEmptyValue, getValue, size, transferValues
-
Methods inherited from interface com.qfs.multiversion.ITransaction
commit, isEmpty, prepareCommit, rollback
-
Methods inherited from interface com.qfs.index.IWritableLongArray
set
-
-
-
-
Method Detail
-
getDelta
gnu.trove.map.TIntLongMap 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.TIntLongMap 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.
-
-