use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class GroupCountStepTest method test_g_V_outXcreatedX_groupCountXm__nameX.
public void test_g_V_outXcreatedX_groupCountXm__nameX() {
Map<String, Number> m = new HashMap<String, Number>();
super.test_g_V_outXcreatedX_groupCountXm__nameX(new GremlinPipeline(g.getVertices()).out("created").groupCount(m, new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("name");
}
}), m);
m = new HashMap<String, Number>();
super.test_g_V_outXcreatedX_groupCountXm__nameX(new GremlinPipeline(g).optimize(false).V().out("created").groupCount(m, new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("name");
}
}), m);
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class SideEffectStepTest method test_g_v1_out_sideEffectXfalseX_propertyXnameX.
public void test_g_v1_out_sideEffectXfalseX_propertyXnameX() {
super.test_g_v1_out_sideEffectXfalseX_propertyXnameX(new GremlinPipeline(g.getVertex(1)).out().sideEffect(new PipeFunction<Vertex, Object>() {
public Object compute(Vertex vertex) {
return false;
}
}).property("name"));
super.test_g_v1_out_sideEffectXfalseX_propertyXnameX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().sideEffect(new PipeFunction<Vertex, Object>() {
public Object compute(Vertex vertex) {
return false;
}
}).property("name"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_V.
public void test_g_V() {
super.test_g_V(new GremlinPipeline(g.getVertices()));
super.test_g_V(new GremlinPipeline(g).V());
super.test_g_V(new GremlinPipeline(g.getVertices()).optimize(false));
super.test_g_V(new GremlinPipeline(g).optimize(false).V());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_v1_outXknowsX.
public void test_g_v1_outXknowsX() {
super.test_g_v1_outXknowsX(new GremlinPipeline(g.getVertex(1)).out("knows"));
super.test_g_v1_outXknowsX(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_v4_both.
public void test_g_v4_both() {
super.test_g_v4_both(new GremlinPipeline(g.getVertex(4)).both());
super.test_g_v4_both(new GremlinPipeline(g.getVertex(4)).optimize(false).both());
}
Aggregations