Class OIndexDictionary

All Implemented Interfaces:
OIndex, OIndexInternal, Comparable<OIndex>

public class OIndexDictionary extends OIndexOneValue
Dictionary index similar to unique index but does not check for updates, just executes changes. Last put always wins and override the previous value.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Constructor Details

  • Method Details

    • isNativeTxSupported

      public boolean isNativeTxSupported()
    • canBeUsedInEqualityOperators

      public boolean canBeUsedInEqualityOperators()
    • supportsOrderedIterations

      public boolean supportsOrderedIterations()
    • interpretTxKeyChanges

      Description copied from class: OIndexAbstract
      Interprets transaction index changes for a certain key. Override it to customize index behaviour on interpreting index changes. This may be viewed as an optimization, but in some cases this is a requirement. For example, if you put multiple values under the same key during the transaction for single-valued/unique index, but remove all of them except one before commit, there is no point in throwing ORecordDuplicatedException while applying index changes.
      Specified by:
      interpretTxKeyChanges in interface OIndexInternal
      Overrides:
      interpretTxKeyChanges in class OIndexAbstract
      Parameters:
      changes - the changes to interpret.
      Returns:
      the interpreted index key changes.
    • getUniqueValidator

      public IndexEngineValidator<Object,ORID> getUniqueValidator()
      Specified by:
      getUniqueValidator in class OIndexOneValue