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 2015/10/25 14:59:02 UTC

[1/3] incubator-tinkerpop git commit: Add getters for RepeatStep.emitTraversal and RepeatStep.untilTraversal. This is primarily for providers to be able to interrogate the state of the RepeatStep.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master be1d77087 -> 1e5df41b4


Add getters for RepeatStep.emitTraversal and RepeatStep.untilTraversal.
This is primarily for providers to be able to interrogate the state of the RepeatStep.


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

Branch: refs/heads/master
Commit: 5bf1574504b57fe6124c4ba7475f21970d64ba30
Parents: b2ef5a3
Author: pieter <pi...@gmail.com>
Authored: Sat Oct 24 11:12:05 2015 +0200
Committer: pieter <pi...@gmail.com>
Committed: Sat Oct 24 11:12:05 2015 +0200

----------------------------------------------------------------------
 .../gremlin/process/traversal/step/branch/RepeatStep.java    | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/5bf15745/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java
index 2fb330d..1d0b4b9 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java
@@ -75,6 +75,10 @@ public final class RepeatStep<S> extends ComputerAwareStep<S, S> implements Trav
         this.untilTraversal = this.integrateChild(untilTraversal);
     }
 
+    public Traversal.Admin<S, ?> getUntilTraversal() {
+        return this.untilTraversal;
+    }
+
     public void setEmitTraversal(final Traversal.Admin<S, ?> emitTraversal) {
         if (null != this.emitTraversal)
             throw new IllegalStateException("The repeat()-step already has its emit()-modulator declared: " + this);
@@ -82,6 +86,10 @@ public final class RepeatStep<S> extends ComputerAwareStep<S, S> implements Trav
         this.emitTraversal = this.integrateChild(emitTraversal);
     }
 
+    public Traversal.Admin<S, ?> getEmitTraversal() {
+        return this.emitTraversal;
+    }
+
     public List<Traversal.Admin<S, S>> getGlobalChildren() {
         return null == this.repeatTraversal ? Collections.emptyList() : Collections.singletonList(this.repeatTraversal);
     }


[3/3] incubator-tinkerpop git commit: Merge branch 'master' of https://github.com/pietermartin/incubator-tinkerpop

Posted by sp...@apache.org.
Merge branch 'master' of https://github.com/pietermartin/incubator-tinkerpop


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

Branch: refs/heads/master
Commit: 1e5df41b47e2b6baa4a3d62e78717371b2eab0b8
Parents: be1d770 f39ea35
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Sun Oct 25 09:39:19 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Sun Oct 25 09:39:19 2015 -0400

----------------------------------------------------------------------
 .../gremlin/process/traversal/lambda/LoopTraversal.java      | 4 ++++
 .../gremlin/process/traversal/step/branch/RepeatStep.java    | 8 ++++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------



[2/3] incubator-tinkerpop git commit: Added a getter for LoopTraversal.maxLoops. Providers need to access the number of loops when optimizing the RepeatStep.

Posted by sp...@apache.org.
Added a getter for LoopTraversal.maxLoops.
Providers need to access the number of loops when optimizing the RepeatStep.


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

Branch: refs/heads/master
Commit: f39ea35b1151a7f273a03568627a2ef9d69f1832
Parents: 5bf1574
Author: pieter <pi...@gmail.com>
Authored: Sat Oct 24 11:13:33 2015 +0200
Committer: pieter <pi...@gmail.com>
Committed: Sat Oct 24 11:13:33 2015 +0200

----------------------------------------------------------------------
 .../gremlin/process/traversal/lambda/LoopTraversal.java          | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/f39ea35b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/lambda/LoopTraversal.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/lambda/LoopTraversal.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/lambda/LoopTraversal.java
index 2c19719..8f8a151 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/lambda/LoopTraversal.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/lambda/LoopTraversal.java
@@ -32,6 +32,10 @@ public final class LoopTraversal<S, E> extends AbstractLambdaTraversal<S, E> {
         this.maxLoops = maxLoops;
     }
 
+    public long getMaxLoops() {
+        return maxLoops;
+    }
+
     @Override
     public boolean hasNext() {
         return this.allow;