orientdb - OrientDB SQL 中等效的 Tinkerpop path() 步骤
问题描述
我在 Tinkerpop/Gremlin 中有以下工作查询,它可以返回遍历到当前步骤的元素的有序列表。如何在 OrientDB SQL 中制作类似的查询?
g.V().hasLabel('Firma').has('cui','13904073').until(hasLabel('Persoana')).repeat(inE('Actionar').otherV()).sack().path()
我在 OrientDB 中使用 MATCH 进行了类似的遍历,但我找不到一种方法来获取遍历的元素的有序列表:
MATCH{class:Firma,as: FirmaBaza,where:(cui=13904073)}.(inE("Actionar") {as:actEdge}.outV()) {as:act,where:($matched.FirmaBaza!= $currentMatch and @class=="Firma"),while:(true)}.in("Actionar") {as:actPers,where:(@class=="Persoana")} return $pathElements
有没有办法使用 OrientDB SQL 获取遍历元素的有序列表?
解决方案
推荐阅读
- keras - Keras Lambda 层中 output_shape 参数的优势是什么
- ruby - 在 Ruby 中仅在当前月份之间获取前一周
- flutter - 如何在 Flutter Web 中更改 chrome 标题颜色?
- r - 如何识别坐标(点)到线的方向
- javascript - 如何通过 Promise.resolve 在 JavaScript 中返回一个可以被其他代码正常使用的类的新实例
- api - API 平台 Symfony:仅获得 30 个结果(分页)
- react-native - 如何在 React Native 中集成 webex sdk
- javascript - 具有多个条件的Javascript过滤器数组whitin数组
- elasticsearch - elasticsearch数据流中强制@timestamp字段的用途是什么
- cmake - 如何链接共享库而不必导出其内部目标