I
- Vertex id type.public interface PartitionSplitInfo<I extends org.apache.hadoop.io.WritableComparable>
Modifier and Type | Method and Description |
---|---|
Partition |
getNextPartition()
|
int |
getPartitionId(I vertexId)
Get the partition id that a vertex id would belong to.
|
Iterable<Integer> |
getPartitionIds()
Get the ids of all the stored partitions (on current worker) as Iterable
|
long |
getPartitionVertexCount(Integer partitionId)
Return the number of vertices in a partition.
|
void |
putPartition(Partition partition)
|
void |
startIteration()
|
int getPartitionId(I vertexId)
vertexId
- Vertex idIterable<Integer> getPartitionIds()
long getPartitionVertexCount(Integer partitionId)
partitionId
- Partition idvoid startIteration()
Partition getNextPartition()
void putPartition(Partition partition)
partition
- PartitionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.