public class RelationProperty extends Object implements UniqueVarProperty, VarPropertyInternal
| Constructor and Description |
|---|
RelationProperty(com.google.common.collect.ImmutableMultiset<RelationPlayer> relationPlayers) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildString(StringBuilder builder) |
void |
checkInsertable(VarAdmin var)
Check if the given property can be inserted
|
void |
checkValid(GraknGraph graph,
VarAdmin var)
Check if the given property can be used in a match query
|
void |
checkValidProperty(GraknGraph graph,
VarAdmin var) |
void |
delete(GraknGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
boolean |
equals(Object o) |
java.util.stream.Stream<VarAdmin> |
getImplicitInnerVars() |
java.util.stream.Stream<VarAdmin> |
getInnerVars() |
java.util.stream.Stream<RelationPlayer> |
getRelationPlayers() |
java.util.stream.Stream<VarAdmin> |
getTypes() |
int |
hashCode() |
void |
insert(InsertQueryExecutor insertQueryExecutor,
Concept concept)
Insert the given property into the graph, if possible.
|
Collection<EquivalentFragmentSet> |
match(String start)
Return a collection of
EquivalentFragmentSet to match the given property in the graph |
void |
modifyShortcutTraversal(ShortcutTraversal shortcutTraversal) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisUniquecheckValid, deletegetImplicitInnerVars, graqlStringpublic RelationProperty(com.google.common.collect.ImmutableMultiset<RelationPlayer> relationPlayers)
public java.util.stream.Stream<RelationPlayer> getRelationPlayers()
public void buildString(StringBuilder builder)
buildString in interface VarPropertypublic void modifyShortcutTraversal(ShortcutTraversal shortcutTraversal)
modifyShortcutTraversal in interface VarPropertyInternalpublic Collection<EquivalentFragmentSet> match(String start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphmatch in interface VarPropertyInternalpublic java.util.stream.Stream<VarAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarAdmin> getInnerVars()
getInnerVars in interface VarPropertygetInnerVars in interface VarPropertyInternalpublic void checkValidProperty(GraknGraph graph, VarAdmin var) throws IllegalStateException
IllegalStateExceptionpublic void checkInsertable(VarAdmin var) throws IllegalStateException
VarPropertyInternalcheckInsertable in interface VarPropertyInternalIllegalStateExceptionpublic void insert(InsertQueryExecutor insertQueryExecutor, Concept concept) throws IllegalStateException
VarPropertyInternalinsert in interface VarPropertyInternalinsertQueryExecutor - the instance handling the insert queryconcept - the concept to insert a property onIllegalStateExceptionpublic final void checkValid(GraknGraph graph, VarAdmin var) throws IllegalStateException
VarPropertyInternalcheckValid in interface VarPropertyInternalIllegalStateExceptionpublic void delete(GraknGraph graph, Concept concept)
VarPropertyInternaldelete in interface VarPropertyInternalgraph - the graph to operate onconcept - the concept to delete properties ofpublic java.util.stream.Stream<VarAdmin> getImplicitInnerVars()
getImplicitInnerVars in interface VarPropertyCopyright © 2016 Grakn Labs Ltd. All rights reserved.