Class FileGraphPartition
- java.lang.Object
-
- org.apache.hugegraph.computer.core.compute.FileGraphPartition
-
public class FileGraphPartition extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileGraphPartition(org.apache.hugegraph.computer.core.common.ComputerContext context, Managers managers, int partition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PartitionStatcompute(org.apache.hugegraph.computer.core.worker.WorkerContext context, int superstep)protected PartitionStatinput(PeekableIterator<KvEntry> vertices, PeekableIterator<KvEntry> edges)protected voidmessages(PeekableIterator<KvEntry> messages)Put the messages sent at previous superstep from MessageRecvManager to this partition.protected PartitionStatoutput()protected intpartition()
-
-
-
Constructor Detail
-
FileGraphPartition
public FileGraphPartition(org.apache.hugegraph.computer.core.common.ComputerContext context, Managers managers, int partition)
-
-
Method Detail
-
input
protected PartitionStat input(PeekableIterator<KvEntry> vertices, PeekableIterator<KvEntry> edges)
-
compute
protected PartitionStat compute(org.apache.hugegraph.computer.core.worker.WorkerContext context, int superstep)
-
output
protected PartitionStat output()
-
messages
protected void messages(PeekableIterator<KvEntry> messages)
Put the messages sent at previous superstep from MessageRecvManager to this partition. The messages is null if no messages sent to this partition at previous superstep.
-
partition
protected int partition()
-
-