DFE 中的 Gremlin 步骤覆盖
Gremlin DFE 是一项实验室模式特征,可以通过启用集群参数或使用 Neptune#useDFE 查询提示来使用。有关更多信息,请参阅在 Neptune DFE 查询引擎中使用 Gremlin。
以下步骤可在 Gremlin DFE 中使用。
路径和遍历步骤:
asDate()
聚合和收集步骤:
aggregate(global)
数学步骤:
元素步骤:
otherV()
属性步骤:
properties()
筛选步骤:
and()
字符串操作步骤:
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')