You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/10/28 20:20:55 UTC

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

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/TINKERPOP3-857
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;