DFE 中的 Gremlin 步骤覆盖 - Amazon Neptune

DFE 中的 Gremlin 步骤覆盖

Gremlin DFE 是一项实验室模式特征,可以通过启用集群参数或使用 Neptune#useDFE 查询提示来使用。有关更多信息,请参阅在 Neptune DFE 查询引擎中使用 Gremlin

以下步骤可在 Gremlin DFE 中使用。

路径和遍历步骤:

asDate()barrier()call()cap()dateAdd()dateDiff()disjunct()drop()fail()filter()flatMap()id()identity()index()intersect()inject()label()length()loops()map()order()path()project()range()repeat()reverse()sack()sample()select()sideEffect()split()unfold()union()

聚合和收集步骤:

aggregate(global)combine()count()dedup(global)fold()group()groupCount()

数学步骤:

max()mean()min()sum()

元素步骤:

otherV()elementMap()element()v() out()、in()、both()、outE()、inE()、bothE()、outV()、inV()、bothV()、otherV()

属性步骤:

properties()key()valueMap()value()

筛选步骤:

and()coalesce()coin()has()is()local()none()not()or()where()

字符串操作步骤:

concat()lTrim()rTrim()substring()toLower()toUpper()trim()

谓词:

限制

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')