ToXContent
, ToXContentFragment
, Aggregation
, Cardinality
, NumericMetricsAggregation
, NumericMetricsAggregation.SingleValue
public class ParsedCardinality extends ParsedAggregation implements Cardinality
Aggregation.CommonFields
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPED_KEYS_DELIMITER
metadata
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedCardinality() |
Modifier and Type | Method | Description |
---|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
static ParsedCardinality |
fromXContent(XContentParser parser,
java.lang.String name) |
|
java.lang.String |
getType() |
|
long |
getValue() |
The number of unique terms.
|
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 java.lang.String getValueAsString()
getValueAsString
in interface NumericMetricsAggregation.SingleValue
public double value()
value
in interface NumericMetricsAggregation.SingleValue
public long getValue()
Cardinality
getValue
in interface Cardinality
public java.lang.String getType()
getType
in interface Aggregation
public static ParsedCardinality fromXContent(XContentParser parser, java.lang.String name)
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException