| Package | Description |
|---|---|
| ai.grakn.graql.internal.gremlin.sets | |
| ai.grakn.graql.internal.pattern.property |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
EquivalentFragmentSets.dataType(VarProperty varProperty,
Var resourceType,
AttributeType.DataType<?> dataType)
An
EquivalentFragmentSet that indicates a variable representing a resource type with a data-type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.id(VarProperty varProperty,
Var start,
ConceptId id)
An
EquivalentFragmentSet that indicates a variable representing a concept with a particular ID. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isa(VarProperty varProperty,
Var instance,
Var type,
boolean mayHaveEdgeInstances)
An
EquivalentFragmentSet that indicates a variable is a direct instance of a type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isAbstract(VarProperty varProperty,
Var start)
An
EquivalentFragmentSet that indicates a variable represents an abstract type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.label(VarProperty varProperty,
Var type,
com.google.common.collect.ImmutableSet<Label> labels)
An
EquivalentFragmentSet that indicates a variable representing a schema concept with one of the
specified labels. |
static EquivalentFragmentSet |
EquivalentFragmentSets.neq(VarProperty varProperty,
Var varA,
Var varB)
An
EquivalentFragmentSet that indicates a variable is not equal to another variable. |
static EquivalentFragmentSet |
EquivalentFragmentSets.notInternalFragmentSet(VarProperty varProperty,
Var start)
An
EquivalentFragmentSet that indicates a variable is not a casting or a shard. |
static EquivalentFragmentSet |
EquivalentFragmentSets.plays(VarProperty varProperty,
Var type,
Var role,
boolean required)
An
EquivalentFragmentSet that indicates a variable is a type whose instances play a role. |
static EquivalentFragmentSet |
EquivalentFragmentSets.regex(VarProperty varProperty,
Var resourceType,
String regex)
An
EquivalentFragmentSet that indicates a resource type whose instances must conform to a given regex. |
static EquivalentFragmentSet |
EquivalentFragmentSets.relates(VarProperty varProperty,
Var relationType,
Var role)
An
EquivalentFragmentSet that indicates a variable is a relation type which involves a role. |
static EquivalentFragmentSet |
EquivalentFragmentSets.rolePlayer(VarProperty varProperty,
Var relation,
Var edge,
Var rolePlayer,
Var role)
Describes the edge connecting a
Relationship to a role-player. |
static EquivalentFragmentSet |
EquivalentFragmentSets.sub(VarProperty varProperty,
Var subType,
Var superType)
An
EquivalentFragmentSet that indicates a variable is a sub-type of another variable. |
static EquivalentFragmentSet |
EquivalentFragmentSets.value(VarProperty varProperty,
Var resource,
ValuePredicate predicate)
An
EquivalentFragmentSet that indicates a variable represents a resource with value matching a predicate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FragmentSetOptimisation.apply(Collection<EquivalentFragmentSet> fragmentSets,
GraknTx tx)
Apply the optimisation to the given
EquivalentFragmentSets using the given GraknTx. |
static void |
EquivalentFragmentSets.optimiseFragmentSets(Collection<EquivalentFragmentSet> fragmentSets,
GraknTx graph)
Modify the given collection of
EquivalentFragmentSet to introduce certain optimisations, such as the
AttributeIndexFragmentSet. |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.