tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject tinkerpop git commit: added the Gremlin-Pyhton and Gremlin-C# addE() source method. Remove a deprecated static String from GraphTraversal.
Date Wed, 02 Aug 2017 22:24:22 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1740 0c9268722 -> 8a81d9088


added the Gremlin-Pyhton and Gremlin-C# addE() source method. Remove a deprecated static String
from GraphTraversal.


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

Branch: refs/heads/TINKERPOP-1740
Commit: 8a81d908838f577faccdd5fe63c3427e78c14ace
Parents: 0c92687
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Wed Aug 2 16:24:19 2017 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Wed Aug 2 16:24:19 2017 -0600

----------------------------------------------------------------------
 .../process/traversal/dsl/graph/GraphTraversal.java      |  1 -
 .../process/traversal/step/map/AddEdgeStartStep.java     |  5 -----
 .../Process/Traversal/GraphTraversalSource.cs            | 11 +++++++++++
 .../jython/gremlin_python/process/graph_traversal.py     |  5 +++++
 4 files changed, 16 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8a81d908/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
index 99be547..201dc27 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
@@ -2662,7 +2662,6 @@ public interface GraphTraversal<S, E> extends Traversal<S,
E> {
         public static final String propertyMap = "propertyMap";
         public static final String valueMap = "valueMap";
         public static final String select = "select";
-        public static final String selectV3d2 = "selectV3d2";
         public static final String key = "key";
         public static final String value = "value";
         public static final String path = "path";

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8a81d908/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStartStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStartStep.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStartStep.java
index 9d2eec5..e629453 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStartStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStartStep.java
@@ -125,11 +125,6 @@ public final class AddEdgeStartStep extends AbstractStep<Edge, Edge>
     }
 
     @Override
-    public Set<TraverserRequirement> getRequirements() {
-        return this.getSelfAndChildRequirements(TraverserRequirement.OBJECT);
-    }
-
-    @Override
     public CallbackRegistry<Event.EdgeAddedEvent> getMutatingCallbackRegistry() {
         if (null == this.callbackRegistry) this.callbackRegistry = new ListCallbackRegistry<>();
         return this.callbackRegistry;

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8a81d908/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
index e0cd25a..7842a52 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs
@@ -178,6 +178,17 @@ namespace Gremlin.Net.Process.Traversal
         }
 
         /// <summary>
+        ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph
traversal source and adds the addE step to that
+        ///     traversal.
+        /// </summary>
+        public GraphTraversal< Edge,Edge > AddE(params object[] args)
+        {
+            var traversal = new GraphTraversal< Edge,Edge >(TraversalStrategies, new
Bytecode(Bytecode));
+            traversal.Bytecode.AddStep("addE", args);
+            return traversal;
+        }
+
+        /// <summary>
         ///     Spawns a <see cref="GraphTraversal{SType, EType}" /> off this graph
traversal source and adds the addV step to that
         ///     traversal.
         /// </summary>

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8a81d908/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py b/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
index ea4afc6..f7bb201 100644
--- a/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
+++ b/gremlin-python/src/main/jython/gremlin_python/process/graph_traversal.py
@@ -91,6 +91,11 @@ class GraphTraversalSource(object):
         traversal.bytecode.add_step("V", *args)
         return traversal
 
+    def addE(self, *args):
+        traversal = self.get_graph_traversal()
+        traversal.bytecode.add_step("addE", *args)
+        return traversal
+
     def addV(self, *args):
         traversal = self.get_graph_traversal()
         traversal.bytecode.add_step("addV", *args)


Mime
View raw message