public enum QuadTableForm extends Enum<QuadTableForm> implements java.util.function.Supplier<QuadTable>, java.util.function.Predicate<Set<TupleSlot>>
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.HexTable
Enum Constant and Description |
---|
GOPS
Graph-object-predicate-subject.
|
GSPO
Graph-subject-predicate-object.
|
OPSG
Object-predicate-subject-graph.
|
OSGP
Object-subject-graph-predicate.
|
PGSO
Predicate-graph-subject-object.
|
SPOG
Subject-predicate-object-graph.
|
Modifier and Type | Field and Description |
---|---|
List<TupleSlot> |
fullpattern
The full pattern of this table form.
|
Modifier and Type | Method and Description |
---|---|
static QuadTableForm |
chooseFrom(Set<TupleSlot> pattern) |
static java.util.stream.Stream<QuadTableForm> |
tableForms() |
boolean |
test(Set<TupleSlot> pattern) |
static QuadTableForm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuadTableForm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
get
and, isEqual, negate, or
public static final QuadTableForm GSPO
public static final QuadTableForm GOPS
public static final QuadTableForm SPOG
public static final QuadTableForm OSGP
public static final QuadTableForm PGSO
public static final QuadTableForm OPSG
public static QuadTableForm[] values()
for (QuadTableForm c : QuadTableForm.values()) System.out.println(c);
public static QuadTableForm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean test(Set<TupleSlot> pattern)
test
in interface java.util.function.Predicate<Set<TupleSlot>>
pattern
- public static QuadTableForm chooseFrom(Set<TupleSlot> pattern)
pattern
- public static java.util.stream.Stream<QuadTableForm> tableForms()
Licenced under the Apache License, Version 2.0