ToXContent
, ToXContentFragment
, Aggregation
, NumericMetricsAggregation
, NumericMetricsAggregation.SingleValue
, ValueCount
public class ParsedValueCount extends ParsedAggregation implements ValueCount
Aggregation.CommonFields
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPED_KEYS_DELIMITER
metadata
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedValueCount() |
Modifier and Type | Method | 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() |
getMetaData, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
toXContent
isFragment
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)