public static final class Consolidator.None extends Object implements Consolidator
Consolidator.AbstractConsolidator, Consolidator.Avg, Consolidator.Max, Consolidator.None| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Returns true if the state is the same as it would be if a new instance of the consolidator
was created.
|
void |
update(long t,
double v)
Update the state with a new primary datapoint.
|
double |
value(long t)
Return the consolidated value for the specified timestamp.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, create, updatepublic void update(long t,
double v)
Consolidatorupdate in interface Consolidatort - Timestamp for the new value.v - Value to include in the consolidated aggregate. If there is no new measurement, then
NaN can be used to force the completion of the consolidated value.public double value(long t)
Consolidatorvalue in interface Consolidatorpublic boolean isEmpty()
ConsolidatorisEmpty in interface Consolidator