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 () 、bar rier ()、cap ()、ca p ()dateDiff ()、disjunct ()、disjunct()、disjunct ()、f ilter ()、f latMap ()、id ()身份 ()索引 ()相交 ()、注入 ()、标签 ()、长度 ()、循环 ()、地图 ()、order ()、路径 ()、项目 ()r@@ ange ()、repeat ()、reverse ()sack ()、samp le ()、s elect ()、s ideEffect ()、sp lit ()展开 ()、union ()

汇总和收集步骤:

聚合(全局)、组合()、计数()、重复数据删除(全局)、折叠()、组()、groupCount()groupCount()、

数学步骤:

max ()平均值 ()min ()sum ()

元素步骤:

otherV ()ElementMap ()、元素 ()、v () 、out () 、in ()、两者 () 、outE ()、iNe ()、botHe ()、outV ()、inV ()、inV ()、bothV ()、bothV ()、otheV ()、otheV ()、othEV ()、oth EV ()

房产步骤:

属性 ()键 ()valueMap () ()

筛选步骤:

和 () coalesce ()、coin ()、有 ()、is ()l ocal ()、none ()none ()、不是()或 (),其中 ()

字符串操作步骤:

concat () lTrim ()、rTrim ()s ubstring ()、toLower ()、 to pper ()、tim()、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')