public abstract class ParsedTerms extends ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket> implements Terms
| Modifier and Type | Class and Description |
|---|---|
static class |
ParsedTerms.ParsedBucket |
Terms.BucketAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected long |
docCountErrorUpperBound |
protected long |
sumOtherDocCount |
buckets, keyedmetadataTYPED_KEYS_DELIMITEREMPTY_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.
|
declareMultiBucketAggregationFieldsdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentprotected long docCountErrorUpperBound
protected long sumOtherDocCount
public long getDocCountError()
TermsgetDocCountError in interface Termspublic long getSumOfOtherDocCounts()
TermsgetSumOfOtherDocCounts in interface Termspublic java.util.List<? extends Terms.Bucket> getBuckets()
TermsgetBuckets in interface MultiBucketsAggregationgetBuckets in interface Termspublic Terms.Bucket getBucketByKey(java.lang.String term)
TermsgetBucketByKey in interface Termsprotected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket>java.io.IOException