public static class SimpleMutateGraphComputation.SimpleMutateGraphVertexWorkerContext extends WorkerContext
SimpleMutateGraphComputation
.Constructor and Description |
---|
SimpleMutateGraphVertexWorkerContext() |
Modifier and Type | Method and Description |
---|---|
long |
getEdgeCount() |
long |
getOrigEdgeCount() |
long |
getVertexCount() |
void |
increaseEdgesRemoved()
Increase the number of edges removed by one.
|
void |
postApplication()
Finalize the WorkerContext.
|
void |
postSuperstep()
Execute user code.
|
void |
preApplication()
Initialize the WorkerContext.
|
void |
preSuperstep()
Execute user code.
|
getAndClearMessagesFromOtherWorkers, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerCount, getWorkerForVertex, logToCommandLine, readFields, sendMessageToWorker, setGraphState, setupSuperstep, write
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public SimpleMutateGraphVertexWorkerContext()
public void preApplication() throws InstantiationException, IllegalAccessException
WorkerContext
preApplication
in class WorkerContext
InstantiationException
- Expected instantiation in this method.IllegalAccessException
- Thrown for getting the classpublic void postApplication()
WorkerContext
postApplication
in class WorkerContext
public void preSuperstep()
WorkerContext
preSuperstep
in class WorkerContext
public void postSuperstep()
WorkerContext
postSuperstep
in class WorkerContext
public long getVertexCount()
public long getEdgeCount()
public long getOrigEdgeCount()
public void increaseEdgesRemoved()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.