public abstract class ConceptImpl extends Object implements Concept, ConceptVertex, ContainsTxCache
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 |
|---|---|
EdgeElement |
addEdge(ConceptVertex to,
Schema.EdgeLabel label) |
Schema.BaseType |
baseType() |
int |
compareTo(Concept o) |
void |
createShard() |
Shard |
currentShard() |
void |
delete()
Deletes the concept.
|
void |
deleteNode()
Deletes the node and adds it neighbours for validation
|
boolean |
equals(Object object) |
ConceptId |
getId() |
long |
getShardCount() |
int |
hashCode() |
boolean |
isDeleted() |
void |
setShardCount(Long instanceCount) |
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, txCacheClearpublic 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 EdgeElement addEdge(ConceptVertex to, Schema.EdgeLabel label)
public Schema.BaseType baseType()
public ConceptId getId()
public int compareTo(Concept o)
compareTo in interface Comparable<Concept>public void createShard()
public java.util.stream.Stream<Shard> shards()
public Shard currentShard()
public long getShardCount()
public void setShardCount(Long instanceCount)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.