Environment: Janusgraph 0.3.3 cql-es, tinkergraph 3.3.3, gremlin driver 3.3.3 with remote websocket connection and following advice from stephen mallette: How to perform pagination in Gremlin
Following works in gremlin console:
t = g.V().hasLabel('V_USER').has('v_UserName',textContains('Frank'));[]
t.next(1)
However in Java the graph traversal next operation does not return vertices
GraphTraversal<Vertex,Vertex> t =
g.V().hasLabel("V_USER").has("v_UserName","textContains('Frank')");
List<Vertex> vl = t.next(10) // returns null
The GraphTraversal variable t in debug appears as follows:
[GraphStep(vertex,[]), HasStep([~label.eq(V_USER),
v_UserName.eq(textContains('Frank')))])]
So I assume I need to do something other than append the .next() function but I cannot figure out what. Any assistance much appreciated.