tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject incubator-tinkerpop git commit: Clean up some indentation on the console tutorial.
Date Tue, 26 Jan 2016 17:55:49 GMT
Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master cf9f95785 -> 21f3b2503


Clean up some indentation on the console tutorial.


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

Branch: refs/heads/master
Commit: 21f3b2503bb2a2b09614aa04cbc976e1fd4d62dd
Parents: cf9f957
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Tue Jan 26 12:46:57 2016 -0500
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Tue Jan 26 12:46:57 2016 -0500

----------------------------------------------------------------------
 .../tutorials/advanced-console/index.asciidoc   | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/21f3b250/docs/src/tutorials/advanced-console/index.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/tutorials/advanced-console/index.asciidoc b/docs/src/tutorials/advanced-console/index.asciidoc
index f7db305..25027c4 100644
--- a/docs/src/tutorials/advanced-console/index.asciidoc
+++ b/docs/src/tutorials/advanced-console/index.asciidoc
@@ -23,9 +23,9 @@ The Gremlin Console
 In link:http://tinkerpop.apache.org/docs/x.y.z/tutorials/getting-started/#_the_first_five_minutes["The
First Five Minutes"]
 of the link:http://tinkerpop.apache.org[Apache TinkerPop] tutorial on how to
 link:http://tinkerpop.apache.org/docs/x.y.z/tutorials/getting-started/[get started] wth TinkerPop
and graphs, the
-importance of the link:http://tinkerpop.apache.org/docs/x.y.z/reference/#gremlin-console[Gremlin
Console] was introduced. This
-tutorial further explores the usage of the console in the daily work of Gremlin developers
delving more deeply
-into the details of its operations and expanding upon the basic usage guide in the
+importance of the link:http://tinkerpop.apache.org/docs/x.y.z/reference/#gremlin-console[Gremlin
Console] was
+introduced. This tutorial further explores the usage of the console in the daily work of
Gremlin developers delving
+more deeply into the details of its operations and expanding upon the basic usage guide in
the
 link:http://tinkerpop.apache.org/docs/x.y.z/reference[reference documentation].
 
 image::gremlin-dashboard.png[width="600",align="center"]
@@ -501,9 +501,10 @@ firstYear = g.V().hasLabel('person').
                   max().next()
 g.V().hasLabel("person").as("person").
       constant((firstYear..(new Date().getYear() + 1900)).toList()).unfold().as("year").
-      select("person").coalesce(properties("location").filter(values("startTime").where(gte("year"))).
-                                                       order().by("startTime").limit(1),
-                                properties("location").hasNot("endTime")).value().as("location").
+      select("person").coalesce(
+        properties("location").filter(values("startTime").where(gte("year"))).
+                               order().by("startTime").limit(1),
+        properties("location").hasNot("endTime")).value().as("location").
       select("person","year","location").by("name").by().by()
 ----
 
@@ -563,9 +564,10 @@ and stream the data to Cassandra:
 ----
 gremlin> g.V().hasLabel("person").as("person").
 gremlin>       constant((firstYear..(new Date().getYear() + 1900)).toList()).unfold().as("year").
-gremlin>       select("person").coalesce(properties("location").filter(values("startTime").where(gte("year"))).
-gremlin>                                                        order().by("startTime").limit(1),
-gremlin>                                 properties("location").hasNot("endTime")).value().as("location").
+gremlin>       select("person").coalesce(
+gremlin>         properties("location").filter(values("startTime").where(gte("year"))).
+gremlin>                                order().by("startTime").limit(1),
+gremlin>         properties("location").hasNot("endTime")).value().as("location").
 gremlin>       select("person","year","location").by("name").by().by().
 gremlin>       forEachRemaining{
 gremlin>         def statement = insertInto("locations").


Mime
View raw message