| Package | Description |
|---|---|
| ai.grakn.graql.internal.gremlin.fragment | |
| ai.grakn.graql.internal.gremlin.sets | |
| ai.grakn.graql.internal.pattern.property |
| Modifier and Type | Method and Description |
|---|---|
EquivalentFragmentSet |
Fragment.getEquivalentFragmentSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
Fragment.setEquivalentFragmentSet(EquivalentFragmentSet equivalentFragmentSet) |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
EquivalentFragmentSets.casting(VarName relation,
VarName casting)
An
EquivalentFragmentSet that indicates a variable is a relation with a casting. |
static EquivalentFragmentSet |
EquivalentFragmentSets.dataType(VarName resourceType,
ResourceType.DataType<?> dataType)
An
EquivalentFragmentSet that indicates a variable representing a resource type with a data-type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.distinctCasting(VarName castingA,
VarName castingB)
An
EquivalentFragmentSet that indicates two castings are unique |
static EquivalentFragmentSet |
EquivalentFragmentSets.hasScope(VarName relation,
VarName scope)
An
EquivalentFragmentSet that indicates a variable is a relation with a scope. |
static EquivalentFragmentSet |
EquivalentFragmentSets.id(VarName start,
ConceptId id)
An
EquivalentFragmentSet that indicates a variable representing a concept with a particular ID. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isa(VarName instance,
VarName type)
An
EquivalentFragmentSet that indicates a variable is an instance of a type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isAbstract(VarName start)
An
EquivalentFragmentSet that indicates a variable represents an abstract type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isaCastings(VarName casting,
VarName roleType)
An
EquivalentFragmentSet that indicates a variable is an instance of a role-type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.label(VarName type,
TypeLabel label)
An
EquivalentFragmentSet that indicates a variable representing a type with a particular label. |
static EquivalentFragmentSet |
EquivalentFragmentSets.neq(VarName varA,
VarName varB)
An
EquivalentFragmentSet that indicates a variable is not equal to another variable. |
static EquivalentFragmentSet |
EquivalentFragmentSets.notCasting(VarName start)
An
EquivalentFragmentSet that indicates a variable is not a casting. |
static EquivalentFragmentSet |
EquivalentFragmentSets.plays(VarName type,
VarName roleType,
boolean required)
An
EquivalentFragmentSet that indicates a variable is a type whose instances play a role. |
static EquivalentFragmentSet |
EquivalentFragmentSets.regex(VarName resourceType,
String regex)
An
EquivalentFragmentSet that indicates a resource type whose instances must conform to a given regex. |
static EquivalentFragmentSet |
EquivalentFragmentSets.relates(VarName relationType,
VarName roleType)
An
EquivalentFragmentSet that indicates a variable is a relation type which involves a role. |
static EquivalentFragmentSet |
EquivalentFragmentSets.rolePlayer(VarName casting,
VarName rolePlayer)
An
EquivalentFragmentSet that indicates a variable is a casting connected to a role-player. |
static EquivalentFragmentSet |
EquivalentFragmentSets.shortcut(Optional<TypeLabel> roleTypeA,
VarName rolePlayerA,
Optional<TypeLabel> roleTypeB,
VarName rolePlayerB,
Optional<TypeLabel> relationType)
An
EquivalentFragmentSet that indicates a shortcut edge between two role-players. |
static EquivalentFragmentSet |
EquivalentFragmentSets.sub(VarName subType,
VarName superType)
An
EquivalentFragmentSet that indicates a variable is a sub-type of another variable. |
static EquivalentFragmentSet |
EquivalentFragmentSets.value(VarName resource,
ValuePredicateAdmin predicate)
An
EquivalentFragmentSet that indicates a variable represents a resource with value matching a predicate. |
| Modifier and Type | Method and Description |
|---|---|
static void |
EquivalentFragmentSets.optimiseFragmentSets(Collection<EquivalentFragmentSet> fragmentSets,
GraknGraph graph)
Modify the given collection of
EquivalentFragmentSet to introduce certain optimisations, such as the
ResourceIndexFragmentSet. |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.