public abstract class ParsedSignificantTerms extends ParsedMultiBucketAggregation<ParsedSignificantTerms.ParsedBucket> implements SignificantTerms
| Modifier and Type | Class and Description |
|---|---|
static class |
ParsedSignificantTerms.ParsedBucket |
SignificantTerms.BucketAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected long |
subsetSize |
protected long |
supersetSize |
buckets, keyedmetadataTYPED_KEYS_DELIMITEREMPTY_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() |
declareMultiBucketAggregationFieldsdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentprotected long getSubsetSize()
protected long getSupersetSize()
public java.util.List<? extends SignificantTerms.Bucket> getBuckets()
getBuckets in interface MultiBucketsAggregationgetBuckets in interface SignificantTermspublic SignificantTerms.Bucket getBucketByKey(java.lang.String term)
SignificantTermsgetBucketByKey in interface SignificantTermspublic 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