本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
DFE 中的 Gremlin 阶梯报道
Gremlin DFE 是一项实验室模式功能,可以通过启用集群参数或使用查询提示来使用。Neptune#useDFE
欲了解更多信息,请参阅在 Neptune DFE 查询引擎中使用 Gremlin。
以下步骤可在 Gremlin DFE 中使用。
路径和遍历步骤:
asDate ()
汇总和收集步骤:
聚合(全局)
数学步骤:
元素步骤:
otherV ()
房产步骤:
属性 ()
筛选步骤:
和 ()
字符串操作步骤:
concat ()
谓词:
限制
使用限制重复,DFE 中尚不支持重复遍历内的标签和重复数据删除。
// With Limit inside the repeat traversal g.V().has('code','AGR').repeat(out().limit(5)).until(has('code','FRA')) // With Labels inside the repeat traversal g.V().has('code','AGR').repeat(out().as('a')).until(has('code','FRA')) // With Dedup inside the repeat traversal g.V().has('code','AGR').repeat(out().dedup()).until(has('code','FRA'))
尚不支持带有嵌套重复项或分支步骤的路径。
// Path with branching steps g.V().has('code','AGR').union(identity, outE().inV()).path().by('code') // With nested repeat g.V().has('code','AGR').repeat(out().union(identity(), out())).path().by('code')