commit | 92ae16ea10fc0d12e443b08a2c4165cb5538742e | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Mon Dec 21 19:07:43 2020 -0500 |
committer | Michael Blow <mblow@apache.org> | Tue Dec 22 15:04:48 2020 +0000 |
tree | 7d1581c54f5c664bac87cfc8fb92dc0f6ba71cfa | |
parent | 4e00bb4970f88a1285d4a623ae04feef6876fe8c [diff] |
[NO ISSUE][HYR][UTIL] += Span.ELAPSED; misc cleanup Change-Id: Idcf079dd62fd77d0823ccdae4e3961af255f67bb Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/9423 Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Michael Blow <mblow@apache.org> Reviewed-by: Till Westmann <tillw@apache.org>
diff --git a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/Span.java b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/Span.java index a9d8ec8..dc8bc11 100644 --- a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/Span.java +++ b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/Span.java
@@ -70,21 +70,13 @@ } @Override - public void loopUntilExhausted(ThrowingAction action) throws Exception { - super.loopUntilExhausted(action); - } - - @Override - public void loopUntilExhausted(ThrowingAction action, long delay, TimeUnit delayUnit) throws Exception { - super.loopUntilExhausted(action, delay, delayUnit); - } - - @Override public String toString() { - return "<INFINITY>"; + return "<INFINITE>"; } }; + public static final Span ELAPSED = start(0, TimeUnit.NANOSECONDS); + private final long spanNanos; private volatile long startNanos;