Class MapValueIndex<K,V>

Type Parameters:
K - map key type
V - map value type

public class MapValueIndex<K,V> extends ComplexSubFieldIndex<NavigableMap<K,V>,V>
An index on the values of a map field.
  • Method Details

    • getValueIndex

      public CoreIndex2<V,ObjId,K> getValueIndex(Transaction tx)
      Get this index's view of the given transaction, including entry key.

      The returned index includes the map values and their associated keys.

      Parameters:
      tx - transaction
      Returns:
      view of this index in tx
      Throws:
      IllegalArgumentException - if tx is null
    • visit

      public <R> R visit(IndexSwitch<R> target)
      Description copied from class: Index
      Apply visitor pattern.
      Specified by:
      visit in class Index
      Type Parameters:
      R - visitor return type
      Parameters:
      target - target to invoke
      Returns:
      return value from the method of target corresponding to this instance's type