Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BD4CD200CB5 for ; Wed, 12 Jul 2017 22:42:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC006167E49; Wed, 12 Jul 2017 20:42:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0D439167E35 for ; Wed, 12 Jul 2017 22:42:16 +0200 (CEST) Received: (qmail 35505 invoked by uid 500); 12 Jul 2017 20:42:16 -0000 Mailing-List: contact commits-help@tinkerpop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.apache.org Delivered-To: mailing list commits@tinkerpop.apache.org Received: (qmail 35496 invoked by uid 99); 12 Jul 2017 20:42:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 20:42:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E6D86DFC33; Wed, 12 Jul 2017 20:42:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: okram@apache.org To: commits@tinkerpop.apache.org Message-Id: <211b0c02e09044bbb29899dddcbfd320@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: tinkerpop git commit: added references to thosee steps that support by(), to(), from(), and option(). as() was excluded as everything supports as. Date: Wed, 12 Jul 2017 20:42:14 +0000 (UTC) archived-at: Wed, 12 Jul 2017 20:42:17 -0000 Repository: tinkerpop Updated Branches: refs/heads/TINKERPOP-1709 [created] 94f93055f added references to thosee steps that support by(), to(), from(), and option(). as() was excluded as everything supports as. Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/94f93055 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/94f93055 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/94f93055 Branch: refs/heads/TINKERPOP-1709 Commit: 94f93055f5321a36f96b83fab1f380b6ae932e2c Parents: bd4b989 Author: Marko A. Rodriguez Authored: Wed Jul 12 14:42:11 2017 -0600 Committer: Marko A. Rodriguez Committed: Wed Jul 12 14:42:11 2017 -0600 ---------------------------------------------------------------------- docs/src/reference/the-traversal.asciidoc | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/94f93055/docs/src/reference/the-traversal.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc index c54a9db..c7fbcde 100644 --- a/docs/src/reference/the-traversal.asciidoc +++ b/docs/src/reference/the-traversal.asciidoc @@ -425,6 +425,24 @@ g.V().group().by(bothE().count()).by(count()) <3> <2> `by('name')` will process the grouped elements by their name (*element property projection*). <3> `by(count())` will count the number of elements in each group (*traversal*). +The following steps all support `by()`-modulation. Note that the semantics of such modulation should be understood +on a step-by-step level and thus, as discussed in their respective section of the documentation. + +* <>: dedup on the results of a `by()`-modulation. +* <>: filter if the traverser's path is cyclic given `by()`-modulation. +* <>: filter if the traverser's path is simple given `by()`-modulation. +* <>: sample using the value returned by `by()`-modulation. +* <>: determine the predicate given the testing of the results of `by()`-modulation. +* <>: count those groups where the group keys are the result of `by()`-modulation. +* <>: create group keys and values according to `by()`-modulation. +* <>: order the objects by the results of a `by()`-modulation. +* <>: get the path of the traverser where each path element is `by()`-modulated. +* <>: project a map of results given various `by()`-modulations off the current object. +* <>: select path elements and transform them via `by()`-modulation. +* <>: get a tree of traversers objects where the objects have been `by()`-modulated. +* <>: aggregate all objects into a set but only store their `by()`-modulated values. +* <>: store all objects into a set but only store their `by()`-modulated values. + [[cap-step]] Cap Step ~~~~~~~~ @@ -724,6 +742,9 @@ The `from()`-step is not an actual step, but instead is a "step-modulator" simil <>. If a step is able to accept traversals or strings then `from()` is the means by which they are added. The general pattern is `step().from()`. See <>-step. +The list of steps that support `from()`-modulation are: <>, <>, + <>, and <>. + [[group-step]] Group Step ~~~~~~~~~~ @@ -1288,8 +1309,7 @@ g.V().hasLabel('person'). Option Step ~~~~~~~~~~~ -An option to a <> or <> - +An option to a <> or <>. [[optional-step]] Optional Step @@ -2253,6 +2273,8 @@ The `to()`-step is not an actual step, but instead is a "step-modulator" similar <>. If a step is able to accept traversals or strings then `to()` is the means by which they are added. The general pattern is `step().to()`. See <>-step. +The list of steps that support `to()`-modulation are: <>, <>, + <>, and <>. [[tree-step]] Tree Step