public class ParsedValueCount extends ParsedAggregation implements ValueCount
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedValueCount() |
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
static ParsedValueCount |
fromXContent(XContentParser parser,
java.lang.String name) |
java.lang.String |
getType() |
long |
getValue() |
java.lang.String |
getValueAsString() |
double |
value() |
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName
isFragment, toXContent
public double value()
value
in interface NumericMetricsAggregation.SingleValue
public long getValue()
getValue
in interface ValueCount
public java.lang.String getValueAsString()
getValueAsString
in interface NumericMetricsAggregation.SingleValue
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
public static ParsedValueCount fromXContent(XContentParser parser, java.lang.String name)