ToXContent, ToXContentFragment, Aggregation, MultiBucketsAggregation, TermsParsedDoubleTerms, ParsedLongTerms, ParsedStringTermspublic abstract class ParsedTerms extends ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket> implements Terms
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ParsedTerms.ParsedBucket |
Aggregation.CommonFieldsTerms.BucketToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field | Description |
|---|---|---|
protected long |
docCountErrorUpperBound |
|
protected long |
sumOtherDocCount |
TYPED_KEYS_DELIMITERmetadatabuckets, keyedEMPTY_PARAMS| Constructor | Description |
|---|---|
ParsedTerms() |
| Modifier and Type | Method | 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.
|
getMetaData, getName, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContentdeclareMultiBucketAggregationFieldstoXContentisFragmentprotected 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