Class UniqueIndexEngineValidator
java.lang.Object
com.orientechnologies.orient.core.index.engine.UniqueIndexEngineValidator
- All Implemented Interfaces:
IndexEngineValidator<Object,ORID>
-
Field Summary
Fields inherited from interface com.orientechnologies.orient.core.index.engine.IndexEngineValidator
IGNORE -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UniqueIndexEngineValidator
- Parameters:
oIndexUnique-
-
-
Method Details
-
validate
Description copied from interface:IndexEngineValidatorValidates 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:
validatein interfaceIndexEngineValidator<Object,ORID> - Parameters:
key- the put operation key.oldValue- the old value ornullif 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.IGNOREvalue to silently ignore the put operation request being processed.
-