Class SignificantLongTerms.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket<SignificantLongTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket
- All Implemented Interfaces:
Writeable
,MultiBucketsAggregation.Bucket
,SignificantTerms.Bucket
,HasAggregations
,ToXContent
- Enclosing class:
- SignificantLongTerms
public static class SignificantLongTerms.Bucket
extends InternalSignificantTerms.Bucket<SignificantLongTerms.Bucket>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket
InternalSignificantTerms.Bucket.Reader<B extends InternalSignificantTerms.Bucket<B>>
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket
aggregations
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionBucket
(long subsetDf, long subsetSize, long supersetDf, long supersetSize, long term, InternalAggregations aggregations, DocValueFormat format, double score) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
int
hashCode()
protected XContentBuilder
keyToXContent
(XContentBuilder builder) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket
getAggregations, getDocCount, getSignificanceScore, getSubsetDf, getSubsetSize, getSupersetDf, getSupersetSize, toXContent
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getProperty
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Constructor Details
-
Bucket
public Bucket(long subsetDf, long subsetSize, long supersetDf, long supersetSize, long term, InternalAggregations aggregations, DocValueFormat format, double score)
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
getKey
- Returns:
- The key associated with the bucket
-
getKeyAsString
- Returns:
- The key associated with the bucket as a string
-
getKeyAsNumber
- Returns:
- The key, expressed as a number
-
keyToXContent
- Specified by:
keyToXContent
in classInternalSignificantTerms.Bucket<SignificantLongTerms.Bucket>
- Throws:
IOException
-
equals
- Overrides:
equals
in classInternalSignificantTerms.Bucket<SignificantLongTerms.Bucket>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalSignificantTerms.Bucket<SignificantLongTerms.Bucket>
-