java.lang.Iterable<SignificantTerms.Bucket>, ToXContent, ToXContentFragment, Aggregation, MultiBucketsAggregation, SignificantTermsParsedSignificantLongTerms, ParsedSignificantStringTermspublic abstract class ParsedSignificantTerms extends ParsedMultiBucketAggregation<ParsedSignificantTerms.ParsedBucket> implements SignificantTerms
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ParsedSignificantTerms.ParsedBucket |
Aggregation.CommonFieldsSignificantTerms.BucketToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field | Description |
|---|---|---|
protected long |
subsetSize |
|
protected long |
supersetSize |
TYPED_KEYS_DELIMITERmetadatabuckets, keyedEMPTY_PARAMS| Constructor | Description |
|---|---|
ParsedSignificantTerms() |
| Modifier and Type | Method | 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() |
getMetaData, getName, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContentdeclareMultiBucketAggregationFieldstoXContentisFragmentprotected 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