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 an ILongArray 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
  • Method Details

    • getDelta

      gnu.trove.map.TIntLongMap getDelta()
      Returns the delta object containing the old values for this transaction.

      The delta object is a mapping from 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 mapping from a row ID to the new value for this row.

      Returns:
      the delta
    • reset

      void reset()
      Empties the array.

      Its size will be set to 0.