Class ListElementIndex<E>

Type Parameters:
E - list element type

public class ListElementIndex<E> extends CollectionElementIndex<List<E>,E>
An index on the elements of a list field.
  • Method Details

    • getElementIndex

      public CoreIndex2<E,ObjId,Integer> getElementIndex(Transaction tx)
      Get this index's view of the given transaction, including list index.

      The returned index includes the list elements and their index positions in the list.

      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