tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [08/27] incubator-tinkerpop git commit: Revert "Update traversal docs for Profile step changes."
Date Fri, 04 Mar 2016 18:21:25 GMT
Revert "Update traversal docs for Profile step changes."

This reverts commit 86941ee5c6ff37f2bc4f88ea520a530e9372ba79.


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

Branch: refs/heads/master
Commit: ebb6143e9dffbc0980dcb1445a18088f3e7fd4fa
Parents: 6f6c9a5
Author: rjbriody <bob.briody@datastax.com>
Authored: Tue Mar 1 08:45:46 2016 -0500
Committer: rjbriody <bob.briody@datastax.com>
Committed: Tue Mar 1 08:45:46 2016 -0500

----------------------------------------------------------------------
 docs/src/reference/the-traversal.asciidoc | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/ebb6143e/docs/src/reference/the-traversal.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc
index d5d151d..410018e 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -1346,7 +1346,7 @@ profile results, but durations are not exact. Thus, durations are best
considere
 
 [gremlin-groovy,modern]
 ----
-g.V().out('created').repeat(both()).times(3).hasLabel('person').values('age').sum().profile()
+g.V().out('created').repeat(both()).times(3).hasLabel('person').values('age').sum().profile().cap(TraversalMetrics.METRICS_KEY)
 ----
 
 The `profile()`-step generates a `TraversalMetrics` sideEffect object that contains the following
information:
@@ -1363,15 +1363,6 @@ into a single traverser. That new traverser has a `Traverser.bulk()`
that is the
 bulks. On the other hand, the `Count` represents the sum of all `Traverser.bulk()` results
and thus, expresses the
 number of "represented" (not enumerated) traversers. `Traversers` will always be less than
or equal to `Count`.
 
-A side effect key can also be passed to the `profile()`-step for situations when it is important
to iterate the normal
-results of the Traversal and retrieve the `TraversalMetrics` afterwards, as shown here:
-
----
-t = g.V().out('created').repeat(both()).times(3).hasLabel('person').values('age').sum().profile('metrics')
-t.iterate()
-metrics = t.asAdmin().getSideEffects().get('metrics')
----
-
 For traversal compilation information, please see <<explain-step,`explain()`>>-step.
 
 [[range-step]]


Mime
View raw message