public class SccPhaseMasterCompute extends DefaultMasterCompute
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SccPhaseMasterCompute.PhasesEnumerates the possible phases of the algorithm. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONVERGEDFlags whether a vertex converged in the Backward Traversal phase | 
| static String | NEW_MAXIMUMFlags whether a new maximum was found in the Forward Traversal phase | 
| static String | PHASEAggregator that stores the current phase | 
| Constructor and Description | 
|---|
| SccPhaseMasterCompute() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | compute()Must be defined by user to specify what the master has to do. | 
| static SccPhaseMasterCompute.Phases | getPhase(org.apache.hadoop.io.IntWritable phaseInt)Helper function to convert from internal aggregated value to a Phases
 enumerator. | 
| void | initialize()Initialize the MasterCompute class, this is the place to register
 aggregators. | 
readFields, writebroadcast, getAggregatedValue, getComputation, getContext, getMessageCombiner, getReduced, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerInfoList, haltComputation, isHalted, logToCommandLine, registerAggregator, registerPersistentAggregator, registerReducer, registerReducer, setAggregatedValue, setComputation, setGraphState, setIncomingMessage, setMasterService, setMessageCombiner, setOutgoingMessage, setOutgoingMessageClasses, setSuperstepClassesgetConf, setConfpublic static final String PHASE
public static final String NEW_MAXIMUM
public static final String CONVERGED
public void initialize()
                throws InstantiationException,
                       IllegalAccessException
MasterComputeinitialize in class DefaultMasterComputeInstantiationExceptionIllegalAccessExceptionpublic void compute()
MasterComputecompute in class DefaultMasterComputepublic static SccPhaseMasterCompute.Phases getPhase(org.apache.hadoop.io.IntWritable phaseInt)
phaseInt - An integer that matches a position in the Phases enumerator.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.