When I execute the following in a gremlin console I get the expected result.
g.V('name', 'a').next().query().has('b', GREATER_THAN_EQUAL, 100).orderBy('timestamp', Order.DESC).edges()
Now I am trying to execute the same from Java (following this guide) however I cannot get it to work.
I've tried this
Pipe pipe = Gremlin.compile("_().query().has('b', GREATER_THAN_EQUAL, 100).orderBy('timestamp', Order.DESC).edges()");
pipe.setStarts(new SingleIterator<Vertex>(graph.getVertices("name", 'a').iterator().next()));
for(Object name : pipe) {
}
javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: com.tinkerpop.gremlin.groovy.GremlinGroovyPipeline.query() is applicable for argument types: () values: [] Possible solutions: every(), every(groovy.lang.Closure), grep(), tree([Lcom.tinkerpop.pipes.PipeFunction;), tree([Lgroovy.lang.Closure;), tree(com.tinkerpop.pipes.util.structures.Tree)
And this
Pipe pipe = Gremlin.compile("_().next().query().has('b', GREATER_THAN_EQUAL, 100).orderBy('timestamp', Order.DESC).edges()");
pipe.setStarts(new SingleIterator<Vertex>(graph.getVertices("name", 'a').iterator().next()));
for(Object name : pipe) {
}
javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: com.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.query() is applicable for argument types: () values: [] Possible solutions: every(), every(groovy.lang.Closure), grep(), grep(java.lang.Object), any(), dump()
Any ideas?