use of com.tinkerpop.pipes.util.PipesFunction in project gremlin by tinkerpop.
the class TransformStepTest method test_g_V_asXaX_out_transformXa_nameX.
public void test_g_V_asXaX_out_transformXa_nameX() {
super.test_g_V_asXaX_out_transformXa_nameX(new GremlinPipeline(g).V().as("a").out().transform(new PipesFunction() {
public Object compute(Object argument) {
return ((Vertex) this.asMap.get("a")).getProperty("name");
}
}));
super.test_g_V_asXaX_out_transformXa_nameX(new GremlinPipeline(g.getVertices()).optimize(false).as("a").out().transform(new PipesFunction() {
public Object compute(Object argument) {
return ((Vertex) this.asMap.get("a")).getProperty("name");
}
}));
}
Aggregations