use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class FilterStepTest method test_g_v1_out_filterXage_gt_30X.
public void test_g_v1_out_filterXage_gt_30X() {
super.test_g_v1_out_filterXage_gt_30X(new GremlinPipeline(g.getVertex(1)).out().filter(new PipeFunction<Vertex, Boolean>() {
public Boolean compute(Vertex vertex) {
Integer age = (Integer) vertex.getProperty("age");
return age != null && age > 30;
}
}));
super.test_g_v1_out_filterXage_gt_30X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().filter(new PipeFunction<Vertex, Boolean>() {
public Boolean compute(Vertex vertex) {
Integer age = (Integer) vertex.getProperty("age");
return age != null && age > 30;
}
}));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class HasNotStepTest method test_g_V_hasNotXname_markoX.
public void test_g_V_hasNotXname_markoX() {
super.test_g_V_hasNotXname_markoX(new GremlinPipeline(g).V().hasNot("name", "marko"));
super.test_g_V_hasNotXname_markoX(new GremlinPipeline(g).optimize(false).V().hasNot("name", "marko"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class HasNotStepTest method test_g_V_hasNotXblahX.
public void test_g_V_hasNotXblahX() {
super.test_g_V_hasNotXblahX(new GremlinPipeline(g).V().hasNot("blah"));
super.test_g_V_hasNotXblahX(new GremlinPipeline(g.getVertices()).optimize(false).hasNot("blah"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class HasStepTest method test_g_E_hasXlabelXknowsX.
public void test_g_E_hasXlabelXknowsX() {
super.test_g_E_hasXlabelXknowsX(new GremlinPipeline(g).E().has("label", T.eq, "knows"));
super.test_g_E_hasXlabelXknowsX(new GremlinPipeline(g).optimize(false).E().has("label", T.eq, "knows"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class HasStepTest method test_g_V_hasXname_blahX.
public void test_g_V_hasXname_blahX() {
super.test_g_V_hasXname_blahX(new GremlinPipeline(g.getVertices()).has("name", "blah"));
super.test_g_V_hasXname_blahX(new GremlinPipeline(g.getVertices()).optimize(false).has("name", "blah"));
}
Aggregations