use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_v1_outXknows_createdX.
public void test_g_v1_outXknows_createdX() {
super.test_g_v1_outXknows_createdX(new GremlinPipeline(g.getVertex(1)).out("knows", "created"));
super.test_g_v1_outXknows_createdX(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows", "created"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_v1_out.
public void test_g_v1_out() {
super.test_g_v1_out(new GremlinPipeline(g.getVertex(1)).out());
super.test_g_v1_out(new GremlinPipeline(g.getVertex(1)).optimize(false).out());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class LoopStepTest method test_g_v1_out_loopX1_loops_lt_3X_propertyXnameX.
public void test_g_v1_out_loopX1_loops_lt_3X_propertyXnameX() {
super.test_g_v1_out_loopX1_loops_lt_3X_propertyXnameX(new GremlinPipeline(g.getVertex(1)).out().loop(1, new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
public Boolean compute(LoopPipe.LoopBundle bundle) {
return bundle.getLoops() < 3;
}
}).property("name"));
super.test_g_v1_out_loopX1_loops_lt_3X_propertyXnameX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().loop(1, new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
public Boolean compute(LoopPipe.LoopBundle bundle) {
return bundle.getLoops() < 3;
}
}).property("name"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class LoopStepTest method test_g_v1_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX.
public void test_g_v1_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX() {
super.test_g_v1_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX(new GremlinPipeline(g.getVertex(1)).as("here").out().loop("here", new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
public Boolean compute(LoopPipe.LoopBundle bundle) {
return bundle.getLoops() < 3;
}
}).property("name"));
super.test_g_v1_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX(new GremlinPipeline(g.getVertex(1)).optimize(false).as("here").out().loop("here", new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
public Boolean compute(LoopPipe.LoopBundle bundle) {
return bundle.getLoops() < 3;
}
}).property("name"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class BackStepTest method test_g_v4_out_filterXlang_eq_javaX_backX1X.
public void test_g_v4_out_filterXlang_eq_javaX_backX1X() {
super.test_g_v4_out_filterXlang_eq_javaX_backX1X(new GremlinPipeline(g.getVertex(4)).out().filter(new PipeFunction<Vertex, Boolean>() {
public Boolean compute(Vertex v) {
return v.getProperty("lang").equals("java");
}
}).back(1));
super.test_g_v4_out_filterXlang_eq_javaX_backX1X(new GremlinPipeline(g.getVertex(4)).optimize(false).out().filter(new PipeFunction<Vertex, Boolean>() {
public Boolean compute(Vertex v) {
return v.getProperty("lang").equals("java");
}
}).back(1));
}
Aggregations