Class AggregateBenchmark.AggregateBenchmarkWorkerContext
- java.lang.Object
-
- org.apache.giraph.conf.DefaultImmutableClassesGiraphConfigurable<I,V,E>
-
- org.apache.giraph.worker.WorkerAggregatorDelegator<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
-
- org.apache.giraph.worker.WorkerContext
-
- com.alibaba.graphscope.example.giraph.AggregateBenchmark.AggregateBenchmarkWorkerContext
-
- All Implemented Interfaces:
org.apache.giraph.aggregators.AggregatorUsage
,org.apache.giraph.conf.GiraphConfigurationSettable<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
,org.apache.giraph.conf.ImmutableClassesGiraphConfigurable<org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable>
,org.apache.giraph.worker.WorkerAggregatorUsage
,org.apache.giraph.worker.WorkerBroadcastUsage
,org.apache.giraph.worker.WorkerGlobalCommUsage
,org.apache.giraph.worker.WorkerIndexUsage<org.apache.hadoop.io.WritableComparable>
,org.apache.giraph.worker.WorkerReduceUsage
,org.apache.hadoop.io.Writable
- Enclosing class:
- AggregateBenchmark
public static class AggregateBenchmark.AggregateBenchmarkWorkerContext extends WorkerContext
Worker context used withPageRank
.
-
-
Constructor Summary
Constructors Constructor Description AggregateBenchmarkWorkerContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
getFinalSum()
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, getAndClearMessagesFromOtherWorkers, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerCount, getWorkerForVertex, incStep, logToCommandLine, readFields, reduce, reduceMerge, sendMessageToWorker, setAggregatorManager, setCurStep, setFragment, write
-
Methods inherited from class org.apache.giraph.worker.WorkerAggregatorDelegator
getBroadcast
-
-
-
-
Method Detail
-
getFinalSum
public static long getFinalSum()
-
preApplication
public void preApplication() throws InstantiationException, IllegalAccessException
Description copied from class:WorkerContext
Initialize the WorkerContext. This method is executed once on each Worker before the first superstep starts.- Specified by:
preApplication
in classWorkerContext
- Throws:
InstantiationException
- Expected instantiation in this method.IllegalAccessException
- Thrown for getting the class
-
postApplication
public void postApplication()
Description copied from class:WorkerContext
Finalize the WorkerContext. This method is executed once on each Worker after the last superstep ends.- Specified by:
postApplication
in classWorkerContext
-
preSuperstep
public void preSuperstep()
Description copied from class:WorkerContext
Execute user code. This method is executed once on each Worker before each superstep starts.- Specified by:
preSuperstep
in classWorkerContext
-
postSuperstep
public void postSuperstep()
Description copied from class:WorkerContext
Execute user code. This method is executed once on each Worker after each superstep ends.- Specified by:
postSuperstep
in classWorkerContext
-
-