View a markdown version of this page

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(), order(local), path(), project(), range(), repeat(), reverse(), reverse(), sack(), sample(), select(sideEffect), https://tinkerpop.apache.org/docs/current/reference/#unfold-step https://tinkerpop.apache.org/docs/current/reference/#union-step

彙總和收集步驟:

aggregate(全域)、combin()、count()、dedup()、dedup(本機)、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')