Class PageRank

  • All Implemented Interfaces:
    org.apache.giraph.aggregators.AggregatorUsage, org.apache.giraph.conf.GiraphConfigurationSettable<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable>, org.apache.giraph.conf.ImmutableClassesGiraphConfigurable<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable>, org.apache.giraph.conf.TypesHolder<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable>, org.apache.giraph.graph.Computation<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable>, org.apache.giraph.worker.WorkerAggregatorUsage, org.apache.giraph.worker.WorkerBroadcastUsage, org.apache.giraph.worker.WorkerGlobalCommUsage, org.apache.giraph.worker.WorkerIndexUsage<org.apache.hadoop.io.LongWritable>, org.apache.giraph.worker.WorkerReduceUsage

    public class PageRank
    extends org.apache.giraph.graph.BasicComputation<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable>
    Demonstrates the basic Pregel PageRank implementation.
    • Field Detail

      • MAX_SUPERSTEPS

        public static final int MAX_SUPERSTEPS
        Number of supersteps for this test
        See Also:
        Constant Field Values
    • Constructor Detail

      • PageRank

        public PageRank()
    • Method Detail

      • compute

        public void compute​(org.apache.giraph.graph.Vertex<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.DoubleWritable,​org.apache.hadoop.io.DoubleWritable> vertex,
                            Iterable<org.apache.hadoop.io.DoubleWritable> messages)
                     throws IOException
        Throws:
        IOException