You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by im...@apache.org on 2015/05/20 03:25:21 UTC

[4/4] incubator-asterixdb-hyracks git commit: allow counter to reset from a start

allow counter to reset from a start

Change-Id: Ibcc6fdb66bc758450fd75c70960b481692e06bfe
Reviewed-on: https://asterix-gerrit.ics.uci.edu/270
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <im...@uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/commit/3471c7b2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/tree/3471c7b2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/diff/3471c7b2

Branch: refs/heads/master
Commit: 3471c7b29a2caa37dc872e76b3b25892884e7ea0
Parents: 7f7c573
Author: Yingyi Bu <bu...@gmail.com>
Authored: Mon May 18 16:05:53 2015 -0700
Committer: Ian Maxon <im...@uci.edu>
Committed: Tue May 19 18:21:35 2015 -0700

----------------------------------------------------------------------
 .../uci/ics/hyracks/algebricks/core/algebra/base/Counter.java    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/blob/3471c7b2/algebricks/algebricks-core/src/main/java/edu/uci/ics/hyracks/algebricks/core/algebra/base/Counter.java
----------------------------------------------------------------------
diff --git a/algebricks/algebricks-core/src/main/java/edu/uci/ics/hyracks/algebricks/core/algebra/base/Counter.java b/algebricks/algebricks-core/src/main/java/edu/uci/ics/hyracks/algebricks/core/algebra/base/Counter.java
index 70819a6..3dd4704 100644
--- a/algebricks/algebricks-core/src/main/java/edu/uci/ics/hyracks/algebricks/core/algebra/base/Counter.java
+++ b/algebricks/algebricks-core/src/main/java/edu/uci/ics/hyracks/algebricks/core/algebra/base/Counter.java
@@ -31,4 +31,8 @@ public class Counter {
     public void inc() {
         ++counter;
     }
+
+    public void set(int newStart) {
+        counter = newStart;
+    }
 }