Class WorkerInputManager
- java.lang.Object
-
- org.apache.hugegraph.computer.core.input.WorkerInputManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description WorkerInputManager(org.apache.hugegraph.computer.core.common.ComputerContext context, MessageSendManager sendManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.apache.hugegraph.computer.core.config.Config config)Close the resources used in the computation.voidinit(org.apache.hugegraph.computer.core.config.Config config)Used to add the resources needed by the computation.voidloadGraph()TODO: Load vertices and edges parallel.java.lang.Stringname()The unique identify name.voidservice(InputSplitRpcService rpcService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hugegraph.computer.core.manager.Manager
afterSuperstep, beforeSuperstep, inited
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkerInputManager
public WorkerInputManager(org.apache.hugegraph.computer.core.common.ComputerContext context, MessageSendManager sendManager)
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:ManagerThe unique identify name.
-
init
public void init(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerUsed to add the resources needed by the computation. Be called only one time before all supersteps start.
-
close
public void close(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerClose the resources used in the computation. Be called only one time after all supersteps ended.
-
service
public void service(InputSplitRpcService rpcService)
-
loadGraph
public void loadGraph()
TODO: Load vertices and edges parallel. When this method finish, it means that all vertices and edges are sent, but there is no guarantee that all of them has been received.
-
-