View a markdown version of this page

DFE 中的 Gremlin 步骤覆盖 - Amazon Neptune
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

DFE 中的 Gremlin 步骤覆盖

Gremlin DFE 是一项实验性功能,可以通过启用实例参数或使用查询提示来使用。Neptune#useDFE有关更多信息,请参阅在 Neptune DFE 查询引擎中使用 Gremlin

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

路径和遍历步骤:

asDate () 、b arrier () 、c all () 、c ap () dateAdd () dateDiff () 、d isjunct () 、d rop () filter () 、f ilter () 、f latMap () id ()、身份 () 索引 () 相交 () 、注入 ()、标签 () https://tinkerpop.apache.org/docs/current/reference/#inject-step https://tinkerpop.apache.org/docs/current/reference/#label-step长度 () 循环 () 地图 () 顺序 () 、顺序(本地)路径()项目()、范围()重复()反向() sack()样本()选择()、s ideEffect()、s plit()展开()、联合()https://tinkerpop.apache.org/docs/current/reference/#union-step

聚合和收集步骤:

聚合(全局)、合并()计数()、重复数据删除()重复数据删除(本地)折叠()、组()、groupC ount() 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')