public final class DoubleSummary extends Object implements UpdatableSummary<Double>
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleSummary.Mode
The aggregation modes for this Summary
|
| Constructor and Description |
|---|
DoubleSummary()
Creates an instance of DoubleSummary with zero starting value and default mode (Sum)
|
DoubleSummary(double value,
DoubleSummary.Mode mode)
Creates an instance of DoubleSummary with a given starting value and mode
|
DoubleSummary(DoubleSummary.Mode mode)
Creates an instance of DoubleSummary with zero starting value and a given mode (Sum)
|
| Modifier and Type | Method and Description |
|---|---|
DoubleSummary |
copy() |
static DeserializeResult<DoubleSummary> |
fromMemory(Memory mem)
Creates an instance of the DoubleSummary given a serialized representation
|
double |
getValue() |
byte[] |
toByteArray()
This is to serialize an instance to a byte array.
|
void |
update(Double value)
This is to provide a method of updating summaries
|
public DoubleSummary()
public DoubleSummary(DoubleSummary.Mode mode)
mode - update modepublic DoubleSummary(double value,
DoubleSummary.Mode mode)
value - starting valuemode - update modepublic void update(Double value)
UpdatableSummaryupdate in interface UpdatableSummary<Double>value - update valuepublic DoubleSummary copy()
public double getValue()
public byte[] toByteArray()
SummarytoByteArray in interface Summarypublic static DeserializeResult<DoubleSummary> fromMemory(Memory mem)
mem - Memory object with serialized DoubleSummaryCopyright © 2015–2017 Yahoo! Inc.. All rights reserved.