Interface IndexEngineValidator<K,V>
- Type Parameters:
K- the key type.V- the value type.
- All Known Implementing Classes:
IndexEngineValidatorIncrement,UniqueIndexEngineValidator
public interface IndexEngineValidator<K,V>
Put operation validator.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
IGNORE
Indicates that a put request should be silently ignored by the store.- See Also:
-
-
Method Details
-
validate
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.- 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
IGNOREvalue to silently ignore the put operation request being processed.
-