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) |
static RoleImpl |
get(VertexElement vertexElement) |
java.util.stream.Stream<Type> |
players() |
java.util.stream.Stream<RelationshipType> |
relationships() |
java.util.stream.Stream<Casting> |
rolePlayers() |
delete, from, innerToString, isImplicit, label, label, labelId, subs, sup, sup, sups, thenRules, whenRulesbaseType, caches, createShard, currentShard, deleteNode, equals, hashCode, id, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSchemaConcept, isImplicit, isSchemaConcept, label, labelId, thenRules, whenRulesasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRule, asThing, asType, delete, id, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRule, isThing, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic static RoleImpl get(VertexElement vertexElement)
public static RoleImpl create(VertexElement vertexElement, Role type)
public java.util.stream.Stream<RelationshipType> relationships()
relationships in interface Rolepublic java.util.stream.Stream<Type> players()
public java.util.stream.Stream<Casting> rolePlayers()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.