public abstract class ConceptImpl extends Object implements Concept, ConceptVertex, CacheOwner
The base concept implementation.
A concept which can represent anything in the graph which wraps a tinkerpop Vertex.
This class forms the basis of assuring the graph follows the Grakn object model.
| Modifier and Type | Method and Description |
|---|---|
Schema.BaseType |
baseType() |
Collection<Cache> |
caches() |
void |
createShard() |
Shard |
currentShard() |
void |
delete()
Deletes the concept.
|
void |
deleteNode()
Deletes the node and adds it neighbours for validation
|
boolean |
equals(Object object) |
int |
hashCode() |
ConceptId |
id() |
boolean |
isDeleted() |
Keyspace |
keyspace() |
Long |
shardCount() |
java.util.stream.Stream<Shard> |
shards() |
String |
toString() |
VertexElement |
vertex() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asRule, asSchemaConcept, asThing, asType, isAttribute, isAttributeType, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isRule, isSchemaConcept, isThing, isTypefromfrom, registerCache, txCacheClear, txCacheFlushpublic VertexElement vertex()
vertex in interface ConceptVertexpublic void delete()
throws GraknTxOperationException
delete in interface ConceptGraknTxOperationException - Throws an exception if the node has any edges attached to it.public void deleteNode()
public Collection<Cache> caches()
caches in interface CacheOwnerCacheOwnerpublic Schema.BaseType baseType()
public ConceptId id()
public void createShard()
public java.util.stream.Stream<Shard> shards()
public Long shardCount()
public Shard currentShard()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.