You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/08/18 14:39:50 UTC

[3/3] tinkerpop git commit: Update docs to get rid of RemoteGraph in favor of withRemote()

Update docs to get rid of RemoteGraph in favor of withRemote()


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

Branch: refs/heads/TINKERPOP-1278
Commit: 4906d5979dade016e06aea6f4fe4c523a7ff8270
Parents: 865d35d
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Aug 18 10:39:15 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Aug 18 10:39:15 2016 -0400

----------------------------------------------------------------------
 docs/src/reference/gremlin-applications.asciidoc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4906d597/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index 86bd67c..8fb102d 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -865,8 +865,9 @@ the `TraversalSource` be generated with `EmptyGraph` as follows:
 
 [gremlin-groovy]
 ----
+import org.apache.tinkerpop.gremlin.structure.util.empty.*
 graph = EmptyGraph.instance()
-g = graph.traversal().withRemote('conf/remote-graph.properties'))
+g = graph.traversal().withRemote('conf/remote-graph.properties')
 g.V().valueMap(true)
 ----
 
@@ -875,11 +876,11 @@ then re-use it.
 
 [gremlin-groovy]
 ----
+import org.apache.tinkerpop.gremlin.structure.util.empty.*
 cluster = Cluster.open('conf/remote-objects.yaml')
 graph = EmptyGraph.instance()
 g = graph.traversal().withRemote(DriverRemoteConnection.using(cluster, "g"))
 g.V().valueMap(true)
-graph.close()
 cluster.close()
 ----