

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# DFE 中的 Gremlin 步驟涵蓋範圍
<a name="gremlin-step-coverage-in-DFE"></a>

 Gremlin DFE 是一種實驗性功能，可透過啟用執行個體參數或使用`Neptune#useDFE`查詢提示來使用。如需詳細資訊，請參閱[搭配 Neptune DFE 查詢引擎使用 Gremlin](https://docs.aws.amazon.com//neptune/latest/userguide/gremlin-with-dfe.html)。

 下列步驟可用於 Gremlin DFE。

## 路徑和周遊步驟：
<a name="DFE-path-and-traversal"></a>

 [asDate()](https://tinkerpop.apache.org/docs/current/reference/#asDate-step)， [barrier()](https://tinkerpop.apache.org/docs/current/reference/#barrier-step)， [call()](https://tinkerpop.apache.org/docs/current/reference/#call-step)， [cap()](https://tinkerpop.apache.org/docs/current/reference/#cap-step)， [dateAdd()](https://tinkerpop.apache.org/docs/current/reference/#dateadd-step)， [dateDiff()](https://tinkerpop.apache.org/docs/current/reference/#datediff-step)， [disjunct()](https://tinkerpop.apache.org/docs/current/reference/#disjunct-step)， [drop()](https://tinkerpop.apache.org/docs/current/reference/#drop-step)， [fail()](https://tinkerpop.apache.org/docs/current/reference/#fail-step)， [filter()](https://tinkerpop.apache.org/docs/current/reference/#filter-step)， [flatMap()](https://tinkerpop.apache.org/docs/current/reference/#flatmap-step)， [id()](https://tinkerpop.apache.org/docs/current/reference/#id-step)， [identity()](https://tinkerpop.apache.org/docs/current/reference/#identity-step)， [index()](https://tinkerpop.apache.org/docs/current/reference/#index-step)， [intersect()](https://tinkerpop.apache.org/docs/current/reference/#intersect-step)， [inject()](https://tinkerpop.apache.org/docs/current/reference/#inject-step)， [label()](https://tinkerpop.apache.org/docs/current/reference/#label-step)， [length()](https://tinkerpop.apache.org/docs/current/reference/#length-step)， [loops()](https://tinkerpop.apache.org/docs/current/reference/#loops-step)， [map()](https://tinkerpop.apache.org/docs/current/reference/#map-step)， [order()](https://tinkerpop.apache.org/docs/current/reference/#order-step)， [order(local)](https://tinkerpop.apache.org/docs/current/reference/#order-step)， [path()](https://tinkerpop.apache.org/docs/current/reference/#path-step)， [project()](https://tinkerpop.apache.org/docs/current/reference/#project-step)， [range()](https://tinkerpop.apache.org/docs/current/reference/#range-step)， [repeat()](https://tinkerpop.apache.org/docs/current/reference/#repeat-step)， [reverse()， reverse()](https://tinkerpop.apache.org/docs/current/reference/#reverse-step)， [sack()](https://tinkerpop.apache.org/docs/current/reference/#sack-step)， [sample()](https://tinkerpop.apache.org/docs/current/reference/#sample-step)， [select(](https://tinkerpop.apache.org/docs/current/reference/#select-step)[sideEffect](https://tinkerpop.apache.org/docs/current/reference/#sideeffect-step)[)](https://tinkerpop.apache.org/docs/current/reference/#split-step)， [https://tinkerpop.apache.org/docs/current/reference/#unfold-step](https://tinkerpop.apache.org/docs/current/reference/#unfold-step) [https://tinkerpop.apache.org/docs/current/reference/#union-step](https://tinkerpop.apache.org/docs/current/reference/#union-step)

## 彙總和收集步驟：
<a name="DFE-aggregate-and-collection"></a>

 [aggregate（全域）](https://tinkerpop.apache.org/docs/current/reference/#aggregate-step)、[combin()](https://tinkerpop.apache.org/docs/current/reference/#combine-step)、[count()](https://tinkerpop.apache.org/docs/current/reference/#count-step)、[dedup()](https://tinkerpop.apache.org/docs/current/reference/#dedup-step)、[dedup（本機）](https://tinkerpop.apache.org/docs/current/reference/#dedup-step)、[fold()](https://tinkerpop.apache.org/docs/current/reference/#fold-step)、[group()](https://tinkerpop.apache.org/docs/current/reference/#group-step)、[groupCount()](https://tinkerpop.apache.org/docs/current/reference/#groupcount-step)、

## 數學步驟：
<a name="DFE-mathematical"></a>

 [max()](https://tinkerpop.apache.org/docs/current/reference/#max-step)， [mean()](https://tinkerpop.apache.org/docs/current/reference/#mean-step)， [min()](https://tinkerpop.apache.org/docs/current/reference/#min-step)， [sum()](https://tinkerpop.apache.org/docs/current/reference/#sum-step) 

## 元素步驟：
<a name="DFE-element"></a>

 [otherV()](https://tinkerpop.apache.org/docs/current/reference/#otherv-step)， [elementMap()](https://tinkerpop.apache.org/docs/current/reference/#elementmap-step)， [element()](https://tinkerpop.apache.org/docs/current/reference/#element-step)， [v()](https://tinkerpop.apache.org/docs/current/reference/#graph-step)， [ out()， in()， both()， outE()， inE()， bothE()， outV()， inV()， bothV()， otherV()](https://tinkerpop.apache.org/docs/current/reference/#vertex-step) 

## 屬性步驟：
<a name="DFE-property"></a>

 [properties()](https://tinkerpop.apache.org/docs/current/reference/#properties-step)， [key()](https://tinkerpop.apache.org/docs/current/reference/#key-step)， [valueMap()](https://tinkerpop.apache.org/docs/current/reference/#propertymap-step)， [value()](https://tinkerpop.apache.org/docs/current/reference/#value-step) 

## 篩選步驟：
<a name="DFE-filter"></a>

 [and()](https://tinkerpop.apache.org/docs/current/reference/#and-step)， [coalesce()](https://tinkerpop.apache.org/docs/current/reference/#coalesce-step)， [coin()](https://tinkerpop.apache.org/docs/current/reference/#coin-step)， [has()](https://tinkerpop.apache.org/docs/current/reference/#has-step)， [is()](https://tinkerpop.apache.org/docs/current/reference/#is-step)， [local()](https://tinkerpop.apache.org/docs/current/reference/#local-step)， [none()](https://tinkerpop.apache.org/docs/current/reference/#none-step)， [not()](https://tinkerpop.apache.org/docs/current/reference/#not-step)， [or()](https://tinkerpop.apache.org/docs/current/reference/#or-step)， [where()](https://tinkerpop.apache.org/docs/current/reference/#where-step) 

## 字串操作步驟：
<a name="DFE-string-manipulation"></a>

 [concat()](https://tinkerpop.apache.org/docs/current/reference/#concat-step)、[lTrim()](https://tinkerpop.apache.org/docs/current/reference/#lTrim-step)、[rTrim()](https://tinkerpop.apache.org/docs/current/reference/#rtrim-step)、[substring()](https://tinkerpop.apache.org/docs/current/reference/#substring-step)、[toLower()](https://tinkerpop.apache.org/docs/current/reference/#toLower-step)、[toUpper()](https://tinkerpop.apache.org/docs/current/reference/#toUpper-step)、[trim()](https://tinkerpop.apache.org/docs/current/reference/#trim-step) 

## 述詞：
<a name="DFE-predicates"></a>
+  [ 比較：eq、neq、lt、lte、gt、gte](https://tinkerpop.apache.org/docs/current/reference/#a-note-on-predicates) 
+  [包含：內部，不含](https://tinkerpop.apache.org/docs/current/reference/#a-note-on-predicates) 
+  [ TextP：endingWith、include、notStartingWith、notEndingWith、notContaining](https://tinkerpop.apache.org/docs/current/reference/#a-note-on-predicates) 
+  [ P： 和，或在外部、內部之間](https://tinkerpop.apache.org/docs/current/reference/#a-note-on-predicates) 

## 限制
<a name="gremlin-with-dfe-limitations"></a>

 以限制重複，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')
```