tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [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.
Date Wed, 28 Oct 2015 19:20:55 GMT
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 <pieter.martin@gmail.com>
Authored: Sat Oct 24 11:13:33 2015 +0200
Committer: pieter <pieter.martin@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;


Mime
View raw message