public static class RandomMessageBenchmark.RandomMessageVertex extends Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.BytesWritable>
| Constructor and Description |
|---|
RandomMessageBenchmark.RandomMessageVertex() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(Iterable<org.apache.hadoop.io.BytesWritable> messages)
Must be defined by user to do computation on a single Vertex.
|
addEdge, addEdgeRequest, addVertexRequest, addVertexRequest, aggregate, getAggregatedValue, getAllEdgeValues, getContext, getEdges, getEdgeValue, getId, getMutableEdges, getNumEdges, getPartitionContext, getSuperstep, getTotalNumEdges, getTotalNumVertices, getValue, getWorkerContext, initialize, initialize, isHalted, removeEdges, removeEdgesRequest, removeVertexRequest, sendMessage, sendMessageToAllEdges, setEdges, setEdgeValue, setGraphState, setValue, toString, unwrapMutableEdges, voteToHalt, wakeUpgetConf, setConfpublic RandomMessageBenchmark.RandomMessageVertex()
public void compute(Iterable<org.apache.hadoop.io.BytesWritable> messages)
Vertexcompute in class Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.BytesWritable>messages - Messages that were sent to this vertex in the previous
superstep. Each message is only guaranteed to have
a life expectancy as long as next() is not called.Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.