You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/05/27 00:22:36 UTC

incubator-tinkerpop git commit: fixed a bug in traversal docs around select(local/global).

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master cf614e770 -> cd1b8c833


fixed a bug in traversal docs around select(local/global).


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/cd1b8c83
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/cd1b8c83
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/cd1b8c83

Branch: refs/heads/master
Commit: cd1b8c83345dfd9a7e6df26bf21cbba35a1a2ce9
Parents: cf614e7
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Tue May 26 16:22:46 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Tue May 26 16:22:46 2015 -0600

----------------------------------------------------------------------
 docs/src/the-traversal.asciidoc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/cd1b8c83/docs/src/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/the-traversal.asciidoc b/docs/src/the-traversal.asciidoc
index 3159c84..b5dcc2e 100644
--- a/docs/src/the-traversal.asciidoc
+++ b/docs/src/the-traversal.asciidoc
@@ -1163,15 +1163,15 @@ The second use case is best understood in terms of <<match-step,`match()`>>-step
 
 [gremlin-groovy,modern]
 ----
-g.V().range(0, 2).as('a').map {[b:1,c:2]} <1>
-g.V().range(0, 2).as('a').map {[b:1,c:2]}.select(local) <2>
-g.V().range(0, 2).as('a').map {[b:1,c:2]}.select(local,'a','c') <3>
-g.V().range(0, 2).as('a').map {[b:1,c:2]}.select(local,'c') <4>
+g.V().range(0, 2).map {[b:1,c:2]} <1>
+g.V().range(0, 2).map {[b:1,c:2]}.select(local) <2>
+g.V().range(0, 2).as('a').map {[b:1,c:2]}.select(global) <3>
+g.V().range(0, 2).map {[b:1,c:2]}.select(local,'c') <4>
 ----
 
 <1> A contrived example to create a `Map<String,Object>` flow as a foundation for the examples to follow.
-<2> Select will grab both labeled steps and `Map<String,Object>` entries.
-<3> The same `List<String>` selectivity can be used as demonstrated in the previous example.
+<2> Will select from the `Map<String,Object>` traverser object.
+<3> Will select from the `Path` (or sideEffects) of the traversal.
 <4> If a single selection is used, then the object is emitted not wrapped in a map. Useful for continuing the traversal process without having to do a map projection.
 
 NOTE: When executing a traversal with `select()` on a standard traversal engine (i.e. OLTP), `select()` will do its best to avoid calculating the path history and instead, will rely on a global data structure for storing the currently selected object. As such, if only a subset of the path walked is required, `select()` should be used over the more resource intensive <<path-step,`path()`>>-step.