public class EquivalentFragmentSets extends Object
EquivalentFragmentSet.| Constructor and Description |
|---|
EquivalentFragmentSets() |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
dataType(VarProperty varProperty,
Var resourceType,
AttributeType.DataType<?> dataType)
An
EquivalentFragmentSet that indicates a variable representing a resource type with a data-type. |
static EquivalentFragmentSet |
id(VarProperty varProperty,
Var start,
ConceptId id)
An
EquivalentFragmentSet that indicates a variable representing a concept with a particular ID. |
static EquivalentFragmentSet |
isa(VarProperty varProperty,
Var instance,
Var type,
boolean mayHaveEdgeInstances)
An
EquivalentFragmentSet that indicates a variable is a direct instance of a type. |
static EquivalentFragmentSet |
isAbstract(VarProperty varProperty,
Var start)
An
EquivalentFragmentSet that indicates a variable represents an abstract type. |
static EquivalentFragmentSet |
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 |
neq(VarProperty varProperty,
Var varA,
Var varB)
An
EquivalentFragmentSet that indicates a variable is not equal to another variable. |
static EquivalentFragmentSet |
notInternalFragmentSet(VarProperty varProperty,
Var start)
An
EquivalentFragmentSet that indicates a variable is not a casting or a shard. |
static void |
optimiseFragmentSets(Collection<EquivalentFragmentSet> fragmentSets,
GraknTx graph)
Modify the given collection of
EquivalentFragmentSet to introduce certain optimisations, such as the
AttributeIndexFragmentSet. |
static EquivalentFragmentSet |
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 |
regex(VarProperty varProperty,
Var resourceType,
String regex)
An
EquivalentFragmentSet that indicates a resource type whose instances must conform to a given regex. |
static EquivalentFragmentSet |
relates(VarProperty varProperty,
Var relationType,
Var role)
An
EquivalentFragmentSet that indicates a variable is a relation type which involves a role. |
static EquivalentFragmentSet |
rolePlayer(VarProperty varProperty,
Var relation,
Var edge,
Var rolePlayer,
Var role)
Describes the edge connecting a
Relationship to a role-player. |
static EquivalentFragmentSet |
sub(VarProperty varProperty,
Var subType,
Var superType)
An
EquivalentFragmentSet that indicates a variable is a sub-type of another variable. |
static EquivalentFragmentSet |
value(VarProperty varProperty,
Var resource,
ValuePredicate predicate)
An
EquivalentFragmentSet that indicates a variable represents a resource with value matching a predicate. |
public static EquivalentFragmentSet plays(VarProperty varProperty, Var type, Var role, boolean required)
EquivalentFragmentSet that indicates a variable is a type whose instances play a role.type - a type variable labelrole - a role variable labelrequired - whether the plays must be constrained to be "required"public static EquivalentFragmentSet rolePlayer(VarProperty varProperty, Var relation, Var edge, Var rolePlayer, @Nullable Var role)
Relationship to a role-player.
Can be constrained with information about the possible Roles or RelationshipTypes.
public static EquivalentFragmentSet sub(VarProperty varProperty, Var subType, Var superType)
EquivalentFragmentSet that indicates a variable is a sub-type of another variable.public static EquivalentFragmentSet relates(VarProperty varProperty, Var relationType, Var role)
EquivalentFragmentSet that indicates a variable is a relation type which involves a role.public static EquivalentFragmentSet notInternalFragmentSet(VarProperty varProperty, Var start)
EquivalentFragmentSet that indicates a variable is not a casting or a shard.public static EquivalentFragmentSet isa(VarProperty varProperty, Var instance, Var type, boolean mayHaveEdgeInstances)
EquivalentFragmentSet that indicates a variable is a direct instance of a type.public static EquivalentFragmentSet neq(VarProperty varProperty, Var varA, Var varB)
EquivalentFragmentSet that indicates a variable is not equal to another variable.public static EquivalentFragmentSet value(VarProperty varProperty, Var resource, ValuePredicate predicate)
EquivalentFragmentSet that indicates a variable represents a resource with value matching a predicate.public static EquivalentFragmentSet id(VarProperty varProperty, Var start, ConceptId id)
EquivalentFragmentSet that indicates a variable representing a concept with a particular ID.public static EquivalentFragmentSet isAbstract(VarProperty varProperty, Var start)
EquivalentFragmentSet that indicates a variable represents an abstract type.public static EquivalentFragmentSet label(VarProperty varProperty, Var type, com.google.common.collect.ImmutableSet<Label> labels)
EquivalentFragmentSet that indicates a variable representing a schema concept with one of the
specified labels.public static EquivalentFragmentSet dataType(VarProperty varProperty, Var resourceType, AttributeType.DataType<?> dataType)
EquivalentFragmentSet that indicates a variable representing a resource type with a data-type.public static EquivalentFragmentSet regex(VarProperty varProperty, Var resourceType, String regex)
EquivalentFragmentSet that indicates a resource type whose instances must conform to a given regex.public static void optimiseFragmentSets(Collection<EquivalentFragmentSet> fragmentSets, GraknTx graph)
EquivalentFragmentSet to introduce certain optimisations, such as the
AttributeIndexFragmentSet.
This involves substituting various EquivalentFragmentSet with other EquivalentFragmentSet.
Copyright © 2017 Grakn Labs Ltd. All rights reserved.