All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinkerpop.gremlin.giraph.process.graph.example.TraversalSupplier2 Maven / Gradle / Ivy

package com.tinkerpop.gremlin.giraph.process.graph.example;

import com.tinkerpop.gremlin.giraph.structure.GiraphGraph;
import com.tinkerpop.gremlin.process.Traversal;
import com.tinkerpop.gremlin.util.function.SSupplier;

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public class TraversalSupplier2 implements SSupplier {
    @Override
    public Traversal get() {
        return GiraphGraph.open().V().value("name").map(s -> s.get().length()).groupCount(i -> i.get() + 100);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy