【发布时间】:2016-09-01 09:18:37
【问题描述】:
下面的代码没有给出正确的结果,我做错了什么吗..?
OrientGraph graph = factory.getTx();
for (OrientVertex v : (Iterable<OrientVertex>) graph.command(
new OCommandSQL("SELECT dijkstra(#97:1334, #97:1335, 'calculated_length') FROM STRUCTURE")).execute()) {
System.out.println("Path " + (ORID)v.getId());
}
当我直接执行查询时,我得到了正确的结果。谢谢。
【问题讨论】:
-
你用的是什么版本的orientDb?
-
orientdb-community-2.2.7
标签: orientdb tinkerpop tinkerpop-blueprint