public class StatsFunction extends Object implements MetricFunction<long[]>
| Constructor and Description |
|---|
StatsFunction() |
| Modifier and Type | Method and Description |
|---|---|
long[] |
deserialize(byte[] data)
Deserialize the given metric.
|
void |
merge(long[] value)
Merges the two metrics together.
|
void |
reset() |
byte[] |
serialize()
Serialize the given metric
|
void |
update(long value)
Updates the original metric with the given value.
|
public void reset()
reset in interface MetricFunction<long[]>public void update(long value)
update in interface MetricFunction<long[]>public void merge(long[] value)
merge in interface MetricFunction<long[]>public byte[] serialize()
serialize in interface MetricFunction<long[]>public long[] deserialize(byte[] data)
deserialize in interface MetricFunction<long[]>Copyright © 2014 Calrissian. All Rights Reserved.