Interface OIndexDefinitionMultiValue

All Superinterfaces:
OIndexCallback, OIndexDefinition
All Known Implementing Classes:
OPropertyListIndexDefinition, OPropertyMapIndexDefinition, OPropertyRidBagIndexDefinition

public interface OIndexDefinitionMultiValue extends OIndexDefinition
Interface that indicates that index definition is based on collection of values but not on single value.
Since:
20.12.11
Author:
Andrey Lomakin
  • Method Details

    • createSingleValue

      Object createSingleValue(Object... param)
      Converts passed in value in the key of single index entry.
      Parameters:
      param - Value to convert.
      Returns:
      Index key.
    • processChangeEvent

      void processChangeEvent(OMultiValueChangeEvent<?,?> changeEvent, Map<Object,Integer> keysToAdd, Map<Object,Integer> keysToRemove)
      Process event that contains operation on collection and extract values that should be added removed from index to reflect collection changes in the given index.
      Parameters:
      changeEvent - Event that describes operation that was performed on collection.
      keysToAdd - Values that should be added to related index.
      keysToRemove - Values that should be removed to related index.