public class Shard extends Object
Represent a Shard of a concept
Wraps a VertexElement which is a shard of a Concept.
This is used to break supernodes apart. For example the instances of a Type are
spread across several shards.
| Constructor and Description |
|---|
Shard(ConceptImpl owner,
VertexElement vertexElement) |
Shard(VertexElement vertexElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode() |
String |
id() |
void |
link(ConceptImpl concept)
Links a new concept to this shard.
|
<V extends Thing> |
links() |
VertexElement |
vertex() |
public Shard(ConceptImpl owner, VertexElement vertexElement)
public Shard(VertexElement vertexElement)
public VertexElement vertex()
public String id()
public void link(ConceptImpl concept)
concept - The concept to link to this shardpublic <V extends Thing> java.util.stream.Stream<V> links()
public int hashCode()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.