ToXContent
, ToXContentFragment
, Aggregation
, NumericMetricsAggregation
, NumericMetricsAggregation.MultiValue
, Stats
ParsedExtendedStats
, ParsedStatsBucket
public class ParsedStats extends ParsedAggregation implements Stats
Aggregation.CommonFields
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field | Description |
---|---|---|
protected double |
avg |
|
protected long |
count |
|
protected double |
max |
|
protected double |
min |
|
protected double |
sum |
|
protected java.util.Map<java.lang.String,java.lang.String> |
valueAsString |
TYPED_KEYS_DELIMITER
metadata
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedStats() |
Modifier and Type | Method | Description |
---|---|---|
protected static void |
declareStatsFields(ObjectParser<? extends ParsedStats,java.lang.Void> objectParser) |
|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
static ParsedStats |
fromXContent(XContentParser parser,
java.lang.String name) |
|
double |
getAvg() |
|
java.lang.String |
getAvgAsString() |
|
long |
getCount() |
|
double |
getMax() |
|
java.lang.String |
getMaxAsString() |
|
double |
getMin() |
|
java.lang.String |
getMinAsString() |
|
double |
getSum() |
|
java.lang.String |
getSumAsString() |
|
java.lang.String |
getType() |
|
protected XContentBuilder |
otherStatsToXContent(XContentBuilder builder,
ToXContent.Params params) |
getMetaData, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
toXContent
isFragment
protected long count
protected double min
protected double max
protected double sum
protected double avg
protected final java.util.Map<java.lang.String,java.lang.String> valueAsString
public long getCount()
public double getMin()
public double getMax()
public double getAvg()
public double getSum()
public java.lang.String getMinAsString()
getMinAsString
in interface Stats
public java.lang.String getMaxAsString()
getMaxAsString
in interface Stats
public java.lang.String getAvgAsString()
getAvgAsString
in interface Stats
public java.lang.String getSumAsString()
getSumAsString
in interface Stats
public java.lang.String getType()
getType
in interface Aggregation
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
protected static void declareStatsFields(ObjectParser<? extends ParsedStats,java.lang.Void> objectParser)
public static ParsedStats fromXContent(XContentParser parser, java.lang.String name)
protected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException