Modifier and Type | Method and Description |
---|---|
void |
add(double v) |
long |
count() |
default com.fasterxml.jackson.databind.JsonNode |
getSchema(com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
Defines the avro schema for the result of reading this datatype as JSON.
|
double |
mean() |
default void |
reset()
Reset the accumulator to 0.
|
DoubleAccumulator |
setPersistent(boolean v)
make the accumulator persitent for beginStep.
|
double |
value() |
emitJSON, getRecord, getValues, receiveJSON
double value()
double mean()
void add(double v)
v
- value to add to the accumulatorlong count()
DoubleAccumulator setPersistent(boolean v)
default void reset()
default com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
JSONValue