Package org.apache.jena.sparql.core.mem
Enum TripleTableForm
- java.lang.Object
-
- java.lang.Enum<TripleTableForm>
-
- org.apache.jena.sparql.core.mem.TripleTableForm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TripleTableForm>,java.util.function.Predicate<java.util.Set<TupleSlot>>,java.util.function.Supplier<TripleTable>
public enum TripleTableForm extends java.lang.Enum<TripleTableForm> implements java.util.function.Supplier<TripleTable>, java.util.function.Predicate<java.util.Set<TupleSlot>>
Forms for triple indexes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TripleTableFormchooseFrom(java.util.Set<TupleSlot> pattern)TripleTableget()static java.util.stream.Stream<TripleTableForm>tableForms()booleantest(java.util.Set<TupleSlot> pattern)static TripleTableFormvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TripleTableForm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPO
public static final TripleTableForm SPO
Subject-predicate-object.
-
POS
public static final TripleTableForm POS
Predicate-object-subject.
-
OSP
public static final TripleTableForm OSP
Object-subject-predicate.
-
-
Method Detail
-
values
public static TripleTableForm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TripleTableForm c : TripleTableForm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TripleTableForm valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
get
public TripleTable get()
- Specified by:
getin interfacejava.util.function.Supplier<TripleTable>
-
test
public boolean test(java.util.Set<TupleSlot> pattern)
- Specified by:
testin interfacejava.util.function.Predicate<java.util.Set<TupleSlot>>- Parameters:
pattern-- Returns:
- whether this index form avoids traversal for a query of this pattern
-
chooseFrom
public static TripleTableForm chooseFrom(java.util.Set<TupleSlot> pattern)
- Parameters:
pattern-- Returns:
- the most appropriate choice of index form for that query
-
tableForms
public static java.util.stream.Stream<TripleTableForm> tableForms()
- Returns:
- a stream of these table forms
-
-