public abstract class ParsedSignificantTerms extends ParsedMultiBucketAggregation<ParsedSignificantTerms.ParsedBucket> implements SignificantTerms
Modifier and Type | Class and Description |
---|---|
static class |
ParsedSignificantTerms.ParsedBucket |
SignificantTerms.Bucket
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected long |
subsetSize |
protected long |
supersetSize |
buckets, keyed
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedSignificantTerms() |
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
SignificantTerms.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 SignificantTerms.Bucket> |
getBuckets() |
protected long |
getSubsetSize() |
protected long |
getSupersetSize() |
java.util.Iterator<SignificantTerms.Bucket> |
iterator() |
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 getSubsetSize()
protected long getSupersetSize()
public java.util.List<? extends SignificantTerms.Bucket> getBuckets()
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface SignificantTerms
public SignificantTerms.Bucket getBucketByKey(java.lang.String term)
SignificantTerms
getBucketByKey
in interface SignificantTerms
public java.util.Iterator<SignificantTerms.Bucket> iterator()
iterator
in interface java.lang.Iterable<SignificantTerms.Bucket>
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedMultiBucketAggregation<ParsedSignificantTerms.ParsedBucket>
java.io.IOException