public abstract class ParsedTerms extends ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket> implements Terms
Modifier and Type | Class and Description |
---|---|
static class |
ParsedTerms.ParsedBucket |
Terms.Bucket, Terms.Order
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected long |
docCountErrorUpperBound |
protected long |
sumOtherDocCount |
buckets, keyed
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedTerms() |
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
Terms.Bucket |
getBucketByKey(java.lang.String term)
Get the bucket for the given term, or null if there is no such bucket.
|
java.util.List<? extends Terms.Bucket> |
getBuckets()
Return the sorted list of the buckets in this terms aggregation.
|
long |
getDocCountError()
Get an upper bound of the error on document counts in this aggregation.
|
long |
getSumOfOtherDocCounts()
Return the sum of the document counts of all buckets that did not make
it to the top buckets.
|
declareMultiBucketAggregationFields
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getType
isFragment, toXContent
protected long docCountErrorUpperBound
protected long sumOtherDocCount
public long getDocCountError()
Terms
getDocCountError
in interface Terms
public long getSumOfOtherDocCounts()
Terms
getSumOfOtherDocCounts
in interface Terms
public java.util.List<? extends Terms.Bucket> getBuckets()
Terms
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface Terms
public Terms.Bucket getBucketByKey(java.lang.String term)
Terms
getBucketByKey
in interface Terms
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket>
java.io.IOException