|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.giraph.worker.WorkerContext
org.apache.giraph.examples.SimpleVertexWithWorkerContext.EmitterWorkerContext
public static class SimpleVertexWithWorkerContext.EmitterWorkerContext
Example worker context to emit data as part of a superstep.
| Constructor Summary | |
|---|---|
SimpleVertexWithWorkerContext.EmitterWorkerContext()
|
|
| Method Summary | |
|---|---|
void |
emit(String s)
Write this string to the output stream. |
void |
postApplication()
Finalize the WorkerContext. |
void |
postSuperstep()
Execute user code. |
void |
preApplication()
Initialize the WorkerContext. |
void |
preSuperstep()
Execute user code. |
| Methods inherited from class org.apache.giraph.worker.WorkerContext |
|---|
aggregate, getAggregatedValue, getContext, getSuperstep, getTotalNumEdges, getTotalNumVertices, setGraphState, setWorkerAggregatorUsage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleVertexWithWorkerContext.EmitterWorkerContext()
| Method Detail |
|---|
public void preApplication()
WorkerContext
preApplication in class WorkerContextpublic void postApplication()
WorkerContext
postApplication in class WorkerContextpublic void preSuperstep()
WorkerContext
preSuperstep in class WorkerContextpublic void postSuperstep()
WorkerContext
postSuperstep in class WorkerContextpublic void emit(String s)
s - String to dump.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||