ID
- the ID type of the verticespublic class Partition<ID extends Comparable<ID>> extends Destroyable implements Iterable<VertexCollection<ID>>
Modifier and Type | Method and Description |
---|---|
PgxGraph |
getGraph() |
VertexCollection<ID> |
getPartitionByIndex(int index) |
VertexCollection<ID> |
getPartitionByVertex(PgxVertex<ID> vertex) |
int |
getPartitionIndexOfVertex(PgxVertex<ID> vertex) |
Iterator<VertexCollection<ID>> |
iterator() |
int |
size() |
String |
toString() |
close, destroy, destroyAsync
public PgxGraph getGraph()
public VertexCollection<ID> getPartitionByIndex(int index)
public VertexCollection<ID> getPartitionByVertex(PgxVertex<ID> vertex)
public Iterator<VertexCollection<ID>> iterator()
iterator
in interface Iterable<VertexCollection<ID extends Comparable<ID>>>
public int size()
Copyright © 2015. All rights reserved.