Class ComputeManager
- java.lang.Object
-
- org.apache.hugegraph.computer.core.compute.ComputeManager
-
public class ComputeManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ComputeManager(org.apache.hugegraph.computer.core.common.ComputerContext context, Managers managers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()WorkerStatcompute(org.apache.hugegraph.computer.core.worker.WorkerContext context, int superstep)WorkerStatinput()voidoutput()voidtakeRecvedMessages()Get compute-messages from MessageRecvManager, then put message to corresponding partition.
-
-
-
Constructor Detail
-
ComputeManager
public ComputeManager(org.apache.hugegraph.computer.core.common.ComputerContext context, Managers managers)
-
-
Method Detail
-
input
public WorkerStat input()
-
takeRecvedMessages
public void takeRecvedMessages()
Get compute-messages from MessageRecvManager, then put message to corresponding partition. Be called beforeMessageRecvManager.beforeSuperstep(org.apache.hugegraph.computer.core.config.Config, int)is called.
-
compute
public WorkerStat compute(org.apache.hugegraph.computer.core.worker.WorkerContext context, int superstep)
-
output
public void output()
-
close
public void close()
-
-