ToXContent
, ToXContentFragment
, Aggregation
, MultiBucketsAggregation
, Terms
ParsedDoubleTerms
, ParsedLongTerms
, ParsedStringTerms
public abstract class ParsedTerms extends ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket> implements Terms
Modifier and Type | Class | Description |
---|---|---|
static class |
ParsedTerms.ParsedBucket |
Aggregation.CommonFields
Terms.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field | Description |
---|---|---|
protected long |
docCountErrorUpperBound |
|
protected long |
sumOtherDocCount |
TYPED_KEYS_DELIMITER
metadata
buckets, keyed
EMPTY_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, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
declareMultiBucketAggregationFields
toXContent
isFragment
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