Class SSSP

  • All Implemented Interfaces:
    org.apache.giraph.aggregators.AggregatorUsage, org.apache.giraph.conf.GiraphConfigurationSettable<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable>, org.apache.giraph.conf.ImmutableClassesGiraphConfigurable<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable>, org.apache.giraph.conf.TypesHolder<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable>, org.apache.giraph.graph.Computation<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable>, 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 SSSP
    extends org.apache.giraph.graph.BasicComputation<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.LongWritable>
    Demonstrates the basic Pregel shortest paths implementation.
    • Field Detail

      • SOURCE_ID

        public static org.apache.giraph.conf.LongConfOption SOURCE_ID
        The shortest paths id
    • Constructor Detail

      • SSSP

        public SSSP()
    • Method Detail

      • compute

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