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
    Modifier and Type
    Field
    Description
    static final Object
    Indicates that a put request should be silently ignored by the store.
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(K key, V oldValue, V newValue)
    Validates the put operation for the given key, the old value and the new value.
  • Field Details

  • Method Details

    • validate

      Object validate(K key, V oldValue, V newValue)
      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 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 IGNORE value to silently ignore the put operation request being processed.