tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [tinkerpop] branch master updated: Use RemoteTraverser interface rather than specific DefaultRemoteTraverser CTR
Date Wed, 14 Nov 2018 23:49:33 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 19b5eee  Use RemoteTraverser interface rather than specific DefaultRemoteTraverser
CTR
     new f497276  Merge branch 'tp33'
19b5eee is described below

commit 19b5eee3a1e3bd7a75a418ae28a4c5337fbc5018
Author: Stephen Mallette <spmva@genoprime.com>
AuthorDate: Wed Nov 14 18:48:31 2018 -0500

    Use RemoteTraverser interface rather than specific DefaultRemoteTraverser CTR
---
 CHANGELOG.asciidoc                                                    | 1 +
 .../apache/tinkerpop/gremlin/driver/remote/DriverRemoteTraversal.java | 4 ++--
 .../main/javascript/gremlin-javascript/lib/process/graph-traversal.js | 1 -
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index f19ff82..5422dc3 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -28,6 +28,7 @@ This release also includes changes from <<release-3-2-11, 3.2.11>>.
 * Added `:bytecode` command to help developers debugging `Bytecode`-based traversals.
 * Fixed `PersistedOutputRDD` to eager persist RDD by adding `count()` action calls.
 * Deserialized `g:Set` to a Python `Set` in GraphSON in `gremlin-python`.
+* Changed Java driver to expect a generic `RemoteTraverser` object rather than the specific
`DefaultRemoteTraverser`.
 * Display the remote stack trace in the Gremlin Console when scripts sent to the server fail.
 * Added `AnonymousTraversalSource` which provides a more unified means of constructing a
`TraversalSource`.
 * Changed behavior of GraphSON deserializer in gremlin-python such that `g:Set` returns a
Python `Set`.
diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteTraversal.java
b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteTraversal.java
index d991f21..e36e205 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteTraversal.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteTraversal.java
@@ -23,8 +23,8 @@ import org.apache.tinkerpop.gremlin.driver.Client;
 import org.apache.tinkerpop.gremlin.driver.Result;
 import org.apache.tinkerpop.gremlin.driver.ResultSet;
 import org.apache.tinkerpop.gremlin.process.remote.traversal.AbstractRemoteTraversal;
-import org.apache.tinkerpop.gremlin.process.remote.traversal.DefaultRemoteTraverser;
 import org.apache.tinkerpop.gremlin.process.remote.traversal.RemoteTraversalSideEffects;
+import org.apache.tinkerpop.gremlin.process.remote.traversal.RemoteTraverser;
 import org.apache.tinkerpop.gremlin.process.remote.traversal.step.map.RemoteStep;
 import org.apache.tinkerpop.gremlin.process.traversal.Traversal;
 import org.apache.tinkerpop.gremlin.process.traversal.Traverser;
@@ -139,7 +139,7 @@ public class DriverRemoteTraversal<S, E> extends AbstractRemoteTraversal<S,
E> {
 
         @Override
         public Traverser.Admin<E> next() {
-            return (DefaultRemoteTraverser<E>) inner.next().getObject();
+            return (RemoteTraverser<E>) inner.next().getObject();
         }
     }
 
diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
index 56b9e69..edeb2cb 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/process/graph-traversal.js
@@ -47,7 +47,6 @@ class GraphTraversalSource {
   /**
    * @param remoteConnection
    * @returns {GraphTraversalSource}
-   * @deprecated As of release 3.3.5, replaced by {@link AnonymousTraversalSource#withRemote(Configuration)}.
    */
   withRemote(remoteConnection) {
     const traversalStrategy = new TraversalStrategies(this.traversalStrategies);


Mime
View raw message