public class SumFunction extends Object implements MetricFunction<Long>
| Constructor and Description |
|---|
SumFunction() |
| 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.