tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [tinkerpop] 05/17: Made code section on lambdas static
Date Tue, 13 Nov 2018 15:55:26 GMT
This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch TINKERPOP-2002
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 12d2897d87e01490638a97ddbb8ffbf6b4779a55
Author: Stephen Mallette <spmva@genoprime.com>
AuthorDate: Tue Oct 23 13:02:38 2018 -0400

    Made code section on lambdas static
---
 docs/src/reference/gremlin-variants.asciidoc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc
index 54e46d0..cec3695 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -311,11 +311,9 @@ which allow Gremlin Server to cache traversals that will be reused over
and over
 parameterization may change. Thus, instead of translating, compiling, and then executing
each submitted bytecode,
 it is possible to simply execute. To express bindings in Java, use `Bindings`.
 
-[gremlin-groovy]
+[source,java]
 ----
-cluster = Cluster.open('conf/remote-objects.yaml')
 b = Bindings.instance()
-g = EmptyGraph.instance().traversal().withRemote(DriverRemoteConnection.using(cluster, "g"))
 g.V(b.of('id',1)).out('created').values('name').map{t -> "name: " + t.get() }
 g.V(b.of('id',4)).out('created').values('name').map{t -> "name: " + t.get() }
 g.V(b.of('id',4)).out('created').values('name').getBytecode()


Mime
View raw message