M - public interface Computation<M extends Value<?>>
| Modifier and Type | Method and Description |
|---|---|
default void |
afterSuperstep(WorkerContext context)
This method is called after every superstep.
|
default void |
beforeSuperstep(WorkerContext context)
This method is called before every superstep.
|
String |
category() |
default void |
close(Config config)
This method is called only one time after all superstep iteration.
|
void |
compute(ComputationContext context,
Vertex vertex,
Iterator<M> messages)
Compute a active vertex.
|
void |
compute0(ComputationContext context,
Vertex vertex)
Compute a vertex without message in superstep0.
|
default void |
init(Config config)
This method is called only one time before all superstep start.
|
String |
name() |
String name()
String category()
void compute0(ComputationContext context, Vertex vertex)
void compute(ComputationContext context, Vertex vertex, Iterator<M> messages)
default void init(Config config)
default void close(Config config)
default void beforeSuperstep(WorkerContext context)
default void afterSuperstep(WorkerContext context)
Copyright © 2020–2021. All rights reserved.