public class InternalStatsBucket extends InternalStats implements StatsBucket
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static AggregationStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
count, max, min, sum
valueFormatter
metaData, name
EMPTY_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, writeOtherStatsTo
getProperty, valueAsString
getMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvg, getAvgAsString, getCount, getCountAsString, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
getMetaData, getName, getProperty
public 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 InternalStats
InternalAggregation.Type
of this aggregationpublic InternalStats doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalStats
Copyright © 2009–2016. All rights reserved.