use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class IntervalStepTest method test_g_v1_outE_intervalXweight_0_06X_inV.
public void test_g_v1_outE_intervalXweight_0_06X_inV() {
super.test_g_v1_outE_intervalXweight_0_06X_inV(new GremlinPipeline(g.getVertex(1)).outE().interval("weight", 0.0f, 0.6f).inV());
super.test_g_v1_outE_intervalXweight_0_06X_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).outE().interval("weight", 0.0f, 0.6f).inV());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class RangeStepTest method test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV.
public void test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV() {
super.test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV(new GremlinPipeline(g.getVertex(1)).out("knows").outE("created").range(0, 0).inV());
super.test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").outE("created").range(0, 0).inV());
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class RangeStepTest method test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X.
public void test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X() {
super.test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X(new GremlinPipeline((g.getVertex(1))).out("created").in("created").range(1, 2));
super.test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X(new GremlinPipeline((g.getVertex(1))).optimize(false).out("created").in("created").range(1, 2));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class RangeStepTest method test_g_v1_out_rangeX0_1X.
public void test_g_v1_out_rangeX0_1X() {
super.test_g_v1_out_rangeX0_1X(new GremlinPipeline(g.getVertex(1)).out().range(0, 1));
super.test_g_v1_out_rangeX0_1X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().range(0, 1));
}
use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.
the class GroupByStepTest method test_g_V_groupByXlang_nameX.
public void test_g_V_groupByXlang_nameX() {
Map<?, List<?>> m = new HashMap<Object, List<?>>();
super.test_g_V_groupByXlang_nameX(new GremlinPipeline(g.getVertices()).groupBy(m, new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("lang");
}
}, new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("name");
}
}), (Map) m);
m = new HashMap<Object, List<?>>();
super.test_g_V_groupByXlang_nameX(new GremlinPipeline(g.getVertices()).optimize(false).groupBy(m, new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("lang");
}
}, new PipeFunction<Vertex, String>() {
public String compute(Vertex vertex) {
return (String) vertex.getProperty("name");
}
}), (Map) m);
}
Aggregations