Class UniqueIndexEngineValidator

java.lang.Object
com.orientechnologies.orient.core.index.engine.UniqueIndexEngineValidator
All Implemented Interfaces:
IndexEngineValidator<Object,ORID>

public class UniqueIndexEngineValidator extends Object implements IndexEngineValidator<Object,ORID>
  • Constructor Details

    • UniqueIndexEngineValidator

      public UniqueIndexEngineValidator(OIndexUnique oIndexUnique)
      Parameters:
      oIndexUnique -
  • Method Details

    • validate

      public Object validate(Object key, ORID oldValue, ORID newValue)
      Description copied from interface: IndexEngineValidator
      Validates the put operation for the given key, the old value and the new value. May throw an exception to abort the current put operation with an error.
      Specified by:
      validate in interface IndexEngineValidator<Object,ORID>
      Parameters:
      key - the put operation key.
      oldValue - the old value or null if no value is currently stored.
      newValue - the new value passed to validatedPut(Object, OIdentifiable, Validator).
      Returns:
      the new value to store, may differ from the passed one, or the special IndexEngineValidator.IGNORE value to silently ignore the put operation request being processed.