public class RoleImpl extends SchemaConceptImpl<Role> implements Role
An SchemaConcept which defines a Role which can be played in a RelationshipType.
This SchemaConcept defines the roles which make up a RelationshipType.
It has some additional functionality:
1. It cannot play a Role to itself.
2. It is special in that it is unique to RelationshipTypes.
| Modifier and Type | Method and Description |
|---|---|
static RoleImpl |
create(VertexElement vertexElement,
Role type,
Boolean isImplicit) |
static RoleImpl |
get(VertexElement vertexElement) |
java.util.stream.Stream<Type> |
playedByTypes() |
java.util.stream.Stream<RelationshipType> |
relationshipTypes() |
java.util.stream.Stream<Casting> |
rolePlayers() |
void |
txCacheClear()
Clears the internal
Cache |
void |
txCacheFlush()
Flushes the internal transaction caches so they can refresh with persisted graph
|
delete, from, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, innerToString, isImplicit, setLabel, sub, subs, sup, sup, superSetaddEdge, baseType, compareTo, createShard, currentShard, deleteNode, equals, getId, getShardCount, hashCode, isDeleted, setShardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasRole, isRole, setLabel, sub, subs, sup, supasSchemaConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRule, asThing, asType, delete, getId, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRule, isThing, isTypecompareTofromfrompublic static RoleImpl get(VertexElement vertexElement)
public static RoleImpl create(VertexElement vertexElement, Role type, Boolean isImplicit)
public void txCacheFlush()
SchemaConceptImpltxCacheFlush in class SchemaConceptImpl<Role>public void txCacheClear()
ContainsTxCacheCachetxCacheClear in interface ContainsTxCachetxCacheClear in class SchemaConceptImpl<Role>public java.util.stream.Stream<RelationshipType> relationshipTypes()
relationshipTypes in interface Rolepublic java.util.stream.Stream<Type> playedByTypes()
playedByTypes in interface Rolepublic java.util.stream.Stream<Casting> rolePlayers()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.