public class SimplePageRankVertex extends Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.DoubleWritable>
| Modifier and Type | Class and Description |
|---|---|
static class |
SimplePageRankVertex.SimplePageRankVertexInputFormat
Simple VertexInputFormat that supports
SimplePageRankVertex |
static class |
SimplePageRankVertex.SimplePageRankVertexMasterCompute
Master compute associated with
SimplePageRankVertex. |
static class |
SimplePageRankVertex.SimplePageRankVertexOutputFormat
Simple VertexOutputFormat that supports
SimplePageRankVertex |
static class |
SimplePageRankVertex.SimplePageRankVertexReader
Simple VertexReader that supports
SimplePageRankVertex |
static class |
SimplePageRankVertex.SimplePageRankVertexWorkerContext
Worker context used with
SimplePageRankVertex. |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SUPERSTEPS
Number of supersteps for this test
|
| Constructor and Description |
|---|
SimplePageRankVertex() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(Iterable<org.apache.hadoop.io.DoubleWritable> 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 static final int MAX_SUPERSTEPS
public void compute(Iterable<org.apache.hadoop.io.DoubleWritable> messages)
Vertexcompute in class Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.DoubleWritable>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.