- All Implemented Interfaces:
Serializable
,Comparable<QuadTableForm>
,Constable
,Predicate<Set<TupleSlot>>
,Supplier<QuadTable>
public enum QuadTableForm
extends Enum<QuadTableForm>
implements Supplier<QuadTable>, Predicate<Set<TupleSlot>>
Six covering table forms and machinery to determine which of them is best suited to answer a given query. Please
notice that the individual values of this
enum
are what implement the various interfaces named in the
signature of this type. In particular, any value from this enum
is a complete implementation of
QuadTable
. HexTable
binds up all these six forms into a single implementation of QuadTable
that selects the most useful table form(s) for any given operation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionThe full pattern of this table form. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuadTableForm
chooseFrom
(Set<TupleSlot> pattern) get()
static Stream<QuadTableForm>
boolean
static QuadTableForm
Returns the enum constant of this class with the specified name.static QuadTableForm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GSPO
Graph-subject-predicate-object. -
GOPS
Graph-object-predicate-subject. -
SPOG
Subject-predicate-object-graph. -
OSGP
Object-subject-graph-predicate. -
PGSO
Predicate-graph-subject-object. -
OPSG
Object-predicate-subject-graph.
-
-
Field Details
-
fullpattern
The full pattern of this table form.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
get
-
test
-
chooseFrom
- Parameters:
pattern
-- Returns:
- the most appropriate choice of table form for that query
-
tableForms
- Returns:
- a stream of these table forms
-