public class JsonStorelessStatistic extends java.lang.Object implements JsonUnivariateAggregator
StorelessUnivariateStatistic.| Constructor and Description |
|---|
JsonStorelessStatistic(Statistic stat,
org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic statImpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(com.google.gson.JsonElement partition,
int n)
Clear the aggregator to prepare for a new aggregation.
|
void |
increment(double v)
Add a value to the aggregation.
|
void |
result(com.google.gson.JsonElement partition,
com.google.gson.JsonObject result)
Place the result of the aggregation into the
result
object. |
public JsonStorelessStatistic(Statistic stat, org.apache.commons.math3.stat.descriptive.StorelessUnivariateStatistic statImpl)
public void clear(com.google.gson.JsonElement partition,
int n)
JsonUnivariateAggregatorclear in interface JsonUnivariateAggregatorpartition - Partition key.n - Number of tuples to be aggregated.public void increment(double v)
JsonUnivariateAggregatorincrement in interface JsonUnivariateAggregatorv - Value to be added.public void result(com.google.gson.JsonElement partition,
com.google.gson.JsonObject result)
JsonUnivariateAggregatorresult
object. The key for the result must be
JsonUnivariateAggregate.name() for the corresponding
aggregate. The value of the aggregation may be a primitive value
such as a double or any valid JSON element.result in interface JsonUnivariateAggregatorpartition - Partition key.result - JSON object holding the result.Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902