public interface VarPropertyInternal extends VarProperty
VarProperty, providing additional methods to match, insert or define the property.| Modifier and Type | Method and Description |
|---|---|
default void |
checkInsertable(VarPatternAdmin var)
Check if the given property can be inserted
|
void |
checkValid(GraknTx graph,
VarPatternAdmin var)
Check if the given property can be used in a
Match |
PropertyExecutor |
define(Var var) |
static VarPropertyInternal |
from(VarProperty varProperty)
Helper method to perform the safe cast into this internal type
|
default java.util.stream.Stream<VarPatternAdmin> |
innerVarPatterns() |
PropertyExecutor |
insert(Var var)
Returns a
PropertyExecutor that describes how to insert the given VarProperty into. |
Collection<EquivalentFragmentSet> |
match(Var start)
Return a collection of
EquivalentFragmentSet to match the given property in the graph |
PropertyExecutor |
undefine(Var var) |
default boolean |
uniquelyIdentifiesConcept()
Whether this property will uniquely identify a concept in the graph, if one exists.
|
buildString, getTypes, graqlString, implicitInnerVarPatterns, isUnique, mapToAtomvoid checkValid(GraknTx graph, VarPatternAdmin var) throws GraqlQueryException
MatchGraqlQueryExceptiondefault void checkInsertable(VarPatternAdmin var) throws GraqlQueryException
GraqlQueryExceptionCollection<EquivalentFragmentSet> match(Var start)
EquivalentFragmentSet to match the given property in the graphPropertyExecutor insert(Var var) throws GraqlQueryException
PropertyExecutor that describes how to insert the given VarProperty into.GraqlQueryException - if this VarProperty cannot be insertedPropertyExecutor define(Var var) throws GraqlQueryException
GraqlQueryExceptionPropertyExecutor undefine(Var var) throws GraqlQueryException
GraqlQueryExceptiondefault boolean uniquelyIdentifiesConcept()
default java.util.stream.Stream<VarPatternAdmin> innerVarPatterns()
innerVarPatterns in interface VarPropertystatic VarPropertyInternal from(VarProperty varProperty)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.