Class SignificantStringTerms.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms.Bucket
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,MultiBucketsAggregation.Bucket
,SignificantTerms.Bucket
,HasAggregations
- Enclosing class:
- SignificantStringTerms
public static class SignificantStringTerms.Bucket
extends InternalSignificantTerms.Bucket<SignificantStringTerms.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.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.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.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionBucket(org.apache.lucene.util.BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format, double score)
Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format)
Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
int
hashCode()
protected org.elasticsearch.common.xcontent.XContentBuilder
keyToXContent(org.elasticsearch.common.xcontent.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.common.xcontent.ToXContent
isFragment
-
Constructor Details
-
Bucket
public Bucket(org.apache.lucene.util.BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format, double score) -
Bucket
public Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws IOExceptionRead from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
IOException
-
getKeyAsNumber
- Returns:
- The key, expressed as a number
-
getKeyAsString
- Returns:
- The key associated with the bucket as a string
-
getKey
- Returns:
- The key associated with the bucket
-
keyToXContent
protected org.elasticsearch.common.xcontent.XContentBuilder keyToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder) throws IOException- Specified by:
keyToXContent
in classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
- Throws:
IOException
-
equals
- Overrides:
equals
in classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-