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/29 17:43:09 UTC

[02/18] incubator-tinkerpop git commit: added a reset() step.

added a reset() step.


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

Branch: refs/heads/master
Commit: 0841bbdc009e4af20fb8bff7899b296eaad3c4da
Parents: 5c5bd06
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Tue Oct 20 14:26:50 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Tue Oct 20 14:26:50 2015 -0600

----------------------------------------------------------------------
 .../gremlin/process/traversal/step/map/GraphStep.java         | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/0841bbdc/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java
index 665f934..3a84281 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java
@@ -129,4 +129,11 @@ public class GraphStep<S, E extends Element> extends AbstractStep<S, E> implemen
             }
         }
     }
+
+    @Override
+    public void reset() {
+        super.reset();
+        this.head = null;
+        this.iterator = EmptyIterator.instance();
+    }
 }