Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Factory class designed for the SimpleShortestPathsVertex.
- * It initializes the vertex value to Double.MAX_VALUE
- */
- public class SimpleShortestPathsVertexValueFactory
- implements VertexValueFactory<DoubleWritable> {
- /**
- * Initialize the factory from the configuration.
- *
- * @param configuration Configuration
- */
- public void initialize(
- ImmutableClassesGiraphConfiguration<?, DoubleWritable, ?, ?>
- configuration) {
- }
- /**
- * Create a new vertex value.
- *
- * @return New vertex value.
- */
- public DoubleWritable createVertexValue() {
- DoubleWritable value = new DoubleWritable(Double.MAX_VALUE);
- return value;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment