Enum Class TripleTableForm

java.lang.Object
java.lang.Enum<TripleTableForm>
org.apache.jena.sparql.core.mem.TripleTableForm
All Implemented Interfaces:
Serializable, Comparable<TripleTableForm>, Constable, Predicate<Set<TupleSlot>>, Supplier<TripleTable>

public enum TripleTableForm extends Enum<TripleTableForm> implements Supplier<TripleTable>, Predicate<Set<TupleSlot>>
Forms for triple indexes.
  • Enum Constant Details

  • Field Details

    • twoPrefix

      public final Set<TupleSlot> twoPrefix
      Prefixes of the pattern for this table form.
    • onePrefix

      public final Set<TupleSlot> onePrefix
      Prefixes of the pattern for this table form.
  • Method Details

    • values

      public static TripleTableForm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TripleTableForm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public TripleTable get()
      Specified by:
      get in interface Supplier<TripleTable>
    • test

      public boolean test(Set<TupleSlot> pattern)
      Specified by:
      test in interface Predicate<Set<TupleSlot>>
      Parameters:
      pattern -
      Returns:
      whether this index form avoids traversal for a query of this pattern
    • chooseFrom

      public static TripleTableForm chooseFrom(Set<TupleSlot> pattern)
      Parameters:
      pattern -
      Returns:
      the most appropriate choice of index form for that query
    • tableForms

      public static Stream<TripleTableForm> tableForms()
      Returns:
      a stream of these table forms