use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class SplitMergeStepsTest method test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path.
public void test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path() {
super.test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path(new GremlinPipeline(g.getVertex(1)).out("knows").copySplit(new GremlinPipeline().property("name"), new GremlinPipeline().property("age")).exhaustMerge().path());
super.test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").copySplit(new GremlinPipeline().property("name"), new GremlinPipeline().property("age")).exhaustMerge().path());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class BackStepTest method test_g_v1_out_backX1X.
public void test_g_v1_out_backX1X() {
super.test_g_v1_out_backX1X(new GremlinPipeline(g.getVertex(1)).out().back(1));
super.test_g_v1_out_backX1X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().back(1));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class BackStepTest method test_g_v4_out_asXhereX_filterXlang_eq_javaX_backXhereX.
public void test_g_v4_out_asXhereX_filterXlang_eq_javaX_backXhereX() {
super.test_g_v4_out_asXhereX_filterXlang_eq_javaX_backXhereX(new GremlinPipeline(g.getVertex(4)).out().as("here").filter(new PipeFunction<Vertex, Boolean>() {
public Boolean compute(Vertex v) {
return v.getProperty("lang").equals("java");
}
}).back("here"));
super.test_g_v4_out_asXhereX_filterXlang_eq_javaX_backXhereX(new GremlinPipeline(g.getVertex(4)).optimize(false).out().as("here").filter(new PipeFunction<Vertex, Boolean>() {
public Boolean compute(Vertex v) {
return v.getProperty("lang").equals("java");
}
}).back("here"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class DedupStepTest method test_g_V_both_dedup_name.
public void test_g_V_both_dedup_name() {
super.test_g_V_both_dedup_name(new GremlinPipeline(g.getVertices()).both().dedup().property("name"));
super.test_g_V_both_dedup_name(new GremlinPipeline(g.getVertices()).optimize(false).both().dedup().property("name"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class ExceptStepTest method test_g_v1_out_exceptXg_v2X.
public void test_g_v1_out_exceptXg_v2X() {
super.test_g_v1_out_exceptXg_v2X(new GremlinPipeline(g.getVertex(1)).out().except(Arrays.asList(g.getVertex(2))));
super.test_g_v1_out_exceptXg_v2X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().except(Arrays.asList(g.getVertex(2))));
}
Aggregations