commit | 3471c7b29a2caa37dc872e76b3b25892884e7ea0 | [log] [tgz] |
---|---|---|
author | Yingyi Bu <buyingyi@gmail.com> | Mon May 18 16:05:53 2015 -0700 |
committer | Ian Maxon <imaxon@uci.edu> | Tue May 19 18:21:35 2015 -0700 |
tree | ceb9d36879f59b4495367a3f787da5795297d253 | |
parent | 7f7c5730c6528c4a0c589cabc47447e9fa15d43b [diff] |
allow counter to reset from a start Change-Id: Ibcc6fdb66bc758450fd75c70960b481692e06bfe Reviewed-on: https://asterix-gerrit.ics.uci.edu/270 Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Ian Maxon <imaxon@uci.edu>
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 void inc() { ++counter; } + + public void set(int newStart) { + counter = newStart; + } }