public class RandomWalkWorkerContext extends WorkerContext
| Constructor and Description |
|---|
RandomWalkWorkerContext() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxSupersteps() |
double |
getTeleportationProbability() |
boolean |
isSource(long id)
Checks if a vertex is a source.
|
int |
numSources() |
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, writeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic int getMaxSupersteps()
public double getTeleportationProbability()
public boolean isSource(long id)
id - The vertex ID to check.public int numSources()
public void preApplication()
throws InstantiationException,
IllegalAccessException
WorkerContextpreApplication in class WorkerContextInstantiationException - Expected instantiation in this method.IllegalAccessException - Thrown for getting the classpublic void preSuperstep()
WorkerContextpreSuperstep in class WorkerContextpublic void postSuperstep()
WorkerContextpostSuperstep in class WorkerContextpublic void postApplication()
WorkerContextpostApplication in class WorkerContextCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.