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

    • getDelta

      gnu.trove.map.TIntIntMap 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.TIntIntMap 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.