org.apache.accumulo.server.tabletserver
Class Rate
java.lang.Object
org.apache.accumulo.server.tabletserver.Rate
public class Rate
- extends Object
Constructor Summary |
Rate(double ratio)
Turn a counter into an exponentially smoothed rate over time. |
Method Summary |
double |
rate()
|
double |
update(long counter)
|
double |
update(long when,
long counter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rate
public Rate(double ratio)
- Turn a counter into an exponentially smoothed rate over time.
- Parameters:
ratio
- the rate at which each update influences the curve; must be (0., 1.0)
update
public double update(long counter)
update
public double update(long when,
long counter)
rate
public double rate()
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.