public static class AggregatorsBenchmark.AggregatorsBenchmarkMasterCompute extends DefaultMasterCompute
Constructor and Description |
---|
AggregatorsBenchmarkMasterCompute() |
Modifier and Type | Method and Description |
---|---|
void |
compute()
Must be defined by user to specify what the master has to do.
|
void |
initialize()
Initialize the MasterCompute class, this is the place to register
aggregators.
|
readFields, write
broadcast, getAggregatedValue, getComputation, getContext, getMessageCombiner, getReduced, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerInfoList, haltComputation, isHalted, logToCommandLine, registerAggregator, registerPersistentAggregator, registerReducer, registerReducer, setAggregatedValue, setComputation, setGraphState, setIncomingMessage, setMasterService, setMessageCombiner, setOutgoingMessage, setOutgoingMessageClasses, setSuperstepClasses
getConf, setConf
public void initialize() throws InstantiationException, IllegalAccessException
MasterCompute
initialize
in class DefaultMasterCompute
InstantiationException
IllegalAccessException
public void compute()
MasterCompute
compute
in class DefaultMasterCompute
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.