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