我将数据插入Titan
Iterable it = graph.query().has("userid",Compare.EQUAL,"1").vertices();
Vertex v = (Vertex) it.iterator().next();
System.out.println(v.getProperty("userid"));
然后尝试查询
java.util.NoSuchElementException
at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154)
抛出异常
test.c
当我通过gremlin查询时,它会显示数据。为什么会抛出异常?