Guest User

SimpleShortestPathsVertexValueFactory

a guest
Apr 29th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. /**
  2.  * Factory class designed for the SimpleShortestPathsVertex.
  3.  * It initializes the vertex value to Double.MAX_VALUE
  4.  */
  5. public class SimpleShortestPathsVertexValueFactory
  6.     implements VertexValueFactory<DoubleWritable> {
  7.   /**
  8.    * Initialize the factory from the configuration.
  9.    *
  10.    * @param configuration Configuration
  11.    */
  12.   public void initialize(
  13.     ImmutableClassesGiraphConfiguration<?, DoubleWritable, ?, ?>
  14.       configuration) {
  15.   }
  16.  
  17.   /**
  18.    * Create a new vertex value.
  19.    *
  20.    * @return New vertex value.
  21.    */
  22.   public DoubleWritable createVertexValue() {
  23.     DoubleWritable value = new DoubleWritable(Double.MAX_VALUE);
  24.     return value;
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment