public class InternalStats extends InternalNumericMetricsAggregation.MultiValue implements Stats
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected long |
count |
protected double |
max |
protected double |
min |
static AggregationStreams.Stream |
STREAM |
protected double |
sum |
static InternalAggregation.Type |
TYPE |
valueFormattermetaData, nameEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
InternalStats() |
|
InternalStats(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 |
|---|---|
protected void |
doReadFrom(StreamInput in) |
InternalStats |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
double |
getAvg() |
String |
getAvgAsString() |
long |
getCount() |
String |
getCountAsString() |
double |
getMax() |
String |
getMaxAsString() |
double |
getMin() |
String |
getMinAsString() |
double |
getSum() |
String |
getSumAsString() |
protected XContentBuilder |
otherStatsToXCotent(XContentBuilder builder,
ToXContent.Params params) |
void |
readOtherStatsFrom(StreamInput in) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
double |
value(String name) |
protected void |
writeOtherStatsTo(StreamOutput out) |
getProperty, valueAsStringgetMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getPropertypublic static final InternalAggregation.Type TYPE
public static final AggregationStreams.Stream STREAM
protected long count
protected double min
protected double max
protected double sum
protected InternalStats()
public InternalStats(String name, long count, double sum, double min, double max, ValueFormatter formatter, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStreams()
public long getCount()
public double getMin()
public double getMax()
public double getAvg()
public double getSum()
public String getCountAsString()
getCountAsString in interface Statspublic String getMinAsString()
getMinAsString in interface Statspublic String getMaxAsString()
getMaxAsString in interface Statspublic String getAvgAsString()
getAvgAsString in interface Statspublic String getSumAsString()
getSumAsString in interface Statspublic InternalAggregation.Type type()
type in class InternalAggregationInternalAggregation.Type of this aggregationpublic double value(String name)
value in class InternalNumericMetricsAggregation.MultiValuepublic InternalStats doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationprotected void doReadFrom(StreamInput in) throws IOException
doReadFrom in class InternalAggregationIOExceptionpublic void readOtherStatsFrom(StreamInput in) throws IOException
IOExceptionprotected void doWriteTo(StreamOutput out) throws IOException
doWriteTo in class InternalAggregationIOExceptionprotected void writeOtherStatsTo(StreamOutput out) throws IOException
IOExceptionpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContentBody in class InternalAggregationIOExceptionprotected XContentBuilder otherStatsToXCotent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.