Class ParsedSignificantTerms.ParsedBucket
java.lang.Object
org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantTerms.ParsedBucket
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,MultiBucketsAggregation.Bucket,SignificantTerms.Bucket,HasAggregations
- Direct Known Subclasses:
ParsedSignificantLongTerms.ParsedBucket,ParsedSignificantStringTerms.ParsedBucket
- Enclosing class:
- ParsedSignificantTerms
public abstract static class ParsedSignificantTerms.ParsedBucket
extends ParsedMultiBucketAggregation.ParsedBucket
implements SignificantTerms.Bucket
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected longprotected longprotected longprotected longFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoublelonglonglonglongprotected abstract org.elasticsearch.common.xcontent.XContentBuilderkeyToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
getAggregations, getKeyAsString, isKeyed, parseXContent, setAggregations, setDocCount, setKeyAsString, setKeyedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket
getAggregations, getKey, getKeyAsStringMethods inherited from interface org.elasticsearch.search.aggregations.bucket.terms.SignificantTerms.Bucket
getKeyAsNumberMethods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment
-
Field Details
-
subsetDf
protected long subsetDf -
subsetSize
protected long subsetSize -
supersetDf
protected long supersetDf -
supersetSize
protected long supersetSize -
score
protected double score
-
-
Constructor Details
-
ParsedBucket
public ParsedBucket()
-
-
Method Details
-
getDocCount
public long getDocCount()- Specified by:
getDocCountin interfaceMultiBucketsAggregation.Bucket- Overrides:
getDocCountin classParsedMultiBucketAggregation.ParsedBucket- Returns:
- The number of documents that fall within this bucket
-
getSubsetDf
public long getSubsetDf()- Specified by:
getSubsetDfin interfaceSignificantTerms.Bucket- Returns:
- The number of docs in the subset containing a particular term. This number is equal to the document count of the bucket.
-
getSupersetDf
public long getSupersetDf()- Specified by:
getSupersetDfin interfaceSignificantTerms.Bucket- Returns:
- The number of docs in the superset containing a particular term (also known as the "background count" of the bucket)
-
getSignificanceScore
public double getSignificanceScore()- Specified by:
getSignificanceScorein interfaceSignificantTerms.Bucket- Returns:
- The significant score for the subset
-
getSupersetSize
public long getSupersetSize()- Specified by:
getSupersetSizein interfaceSignificantTerms.Bucket- Returns:
- The numbers of docs in the superset (ordinarily the background count of the containing aggregation).
-
getSubsetSize
public long getSubsetSize()- Specified by:
getSubsetSizein interfaceSignificantTerms.Bucket- Returns:
- The numbers of docs in the subset (also known as "foreground set"). This number is equal to the document count of the containing aggregation.
-
toXContent
public final org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Overrides:
toXContentin classParsedMultiBucketAggregation.ParsedBucket- Throws:
IOException
-
keyToXContent
protected abstract org.elasticsearch.common.xcontent.XContentBuilder keyToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder) throws IOException- Overrides:
keyToXContentin classParsedMultiBucketAggregation.ParsedBucket- Throws:
IOException
-