public class InternalStatsBucket extends InternalStats implements StatsBucket
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static AggregationStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
count, max, min, sumvalueFormattermetaData, nameEMPTY_PARAMS| Constructor and Description |
|---|
InternalStatsBucket(String name,
long count,
double sum,
double min,
double max,
ValueFormatter formatter,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
| Modifier and Type | Method and Description |
|---|---|
InternalStats |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
doReadFrom, doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getCountAsString, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString, otherStatsToXCotent, readOtherStatsFrom, value, writeOtherStatsTogetProperty, valueAsStringgetMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAvg, getAvgAsString, getCount, getCountAsString, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringgetMetaData, getName, getPropertypublic static final InternalAggregation.Type TYPE
public static final AggregationStreams.Stream STREAM
public InternalStatsBucket(String name, long count, double sum, double min, double max, ValueFormatter formatter, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStreams()
public InternalAggregation.Type type()
type in class InternalStatsInternalAggregation.Type of this aggregationpublic InternalStats doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalStatsCopyright © 2009–2017. All rights reserved.