use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_v1_outX1_knowsX_name.
public void test_g_v1_outX1_knowsX_name() {
super.test_g_v1_outX1_knowsX_name(new GremlinPipeline(g.getVertex(1)).out(1, "knows").property("name"));
super.test_g_v1_outX1_knowsX_name(new GremlinPipeline(g.getVertex(1)).optimize(false).out(1, "knows").property("name"));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_V_out_out.
public void test_g_V_out_out() {
super.test_g_V_out_out(new GremlinPipeline(g.getVertices()).out().out());
super.test_g_V_out_out(new GremlinPipeline(g).V().out().out());
super.test_g_V_out_out(new GremlinPipeline(g.getVertices()).optimize(false).out().out());
super.test_g_V_out_out(new GremlinPipeline(g).optimize(false).V().out().out());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TraversalStepsTest method test_g_v1_outEXknows_createdX_inV.
public void test_g_v1_outEXknows_createdX_inV() {
super.test_g_v1_outEXknows_createdX_inV(new GremlinPipeline(g.getVertex(1)).outE("knows", "created").inV());
super.test_g_v1_outEXknows_createdX_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).outE("knows", "created").inV());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class StoreStepTest method test_g_V_propertyXnameX_store_cap.
public void test_g_V_propertyXnameX_store_cap() {
super.test_g_V_propertyXnameX_store_cap(new GremlinPipeline(g).V().property("name").store().cap());
super.test_g_V_propertyXnameX_store_cap(new GremlinPipeline(g).optimize(false).V().property("name").store().cap());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class TableStepTest method test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap.
public void test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap() {
super.test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap(new GremlinPipeline(g.getVertex(1)).as("a").out().property("name").as("b").table(new Table(), new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("name");
}
}, new PipeFunction<String, Integer>() {
public Integer compute(String name) {
return name.length();
}
}).cap());
super.test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap(new GremlinPipeline(g.getVertex(1)).optimize(false).as("a").out().property("name").as("b").table(new Table(), new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("name");
}
}, new PipeFunction<String, Integer>() {
public Integer compute(String name) {
return name.length();
}
}).cap());
}
Aggregations