public final class BlockWorkerContext extends WorkerContext implements KryoIgnoreWritable
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
BlockWorkerContext() |
| Modifier and Type | Method and Description |
|---|---|
BlockOutputHandle |
getOutputHandle() |
Object |
getWorkerValue() |
void |
postApplication()
Finalize the WorkerContext.
|
void |
postSuperstep()
Execute user code.
|
void |
preApplication()
Initialize the WorkerContext.
|
void |
preSuperstep()
Execute user code.
|
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
getAndClearMessagesFromOtherWorkers, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerCount, getWorkerForVertex, logToCommandLine, sendMessageToWorker, setGraphState, setupSuperstepaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic 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 WorkerContextpublic Object getWorkerValue()
public BlockOutputHandle getOutputHandle()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class WorkerContextIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class WorkerContextIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.