public class LouvainComputation extends AbstractComputation<Text,LouvainNodeState,LongWritable,LouvainMessage,LouvainMessage>
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTUAL_Q_AGG |
static String |
CHANGE_AGG |
static String |
TOTAL_EDGE_WEIGHT_AGG |
| Constructor and Description |
|---|
LouvainComputation() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(Vertex<Text,LouvainNodeState,LongWritable> vertex,
Iterable<LouvainMessage> messages) |
void |
initialize(GraphState graphState,
WorkerClientRequestProcessor<Text,LouvainNodeState,LongWritable> workerClientRequestProcessor,
GraphTaskManager<Text,LouvainNodeState,LongWritable> graphTaskManager,
WorkerAggregatorUsage workerAggregatorUsage,
WorkerContext workerContext) |
addEdgeRequest, addVertexRequest, addVertexRequest, aggregate, getAggregatedValue, getContext, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerContext, postSuperstep, preSuperstep, removeEdgesRequest, removeVertexRequest, sendMessage, sendMessageToAllEdges, sendMessageToMultipleEdgesgetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic static final String CHANGE_AGG
public static final String TOTAL_EDGE_WEIGHT_AGG
public static final String ACTUAL_Q_AGG
public void initialize(GraphState graphState, WorkerClientRequestProcessor<Text,LouvainNodeState,LongWritable> workerClientRequestProcessor, GraphTaskManager<Text,LouvainNodeState,LongWritable> graphTaskManager, WorkerAggregatorUsage workerAggregatorUsage, WorkerContext workerContext)
initialize in interface Computation<Text,LouvainNodeState,LongWritable,LouvainMessage,LouvainMessage>initialize in class AbstractComputation<Text,LouvainNodeState,LongWritable,LouvainMessage,LouvainMessage>public void compute(Vertex<Text,LouvainNodeState,LongWritable> vertex, Iterable<LouvainMessage> messages) throws IOException
compute in interface Computation<Text,LouvainNodeState,LongWritable,LouvainMessage,LouvainMessage>compute in class AbstractComputation<Text,LouvainNodeState,LongWritable,LouvainMessage,LouvainMessage>IOException