Module org.elasticsearch.server
Class SignificantStringTerms.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucketWritable
org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms.Bucket
- All Implemented Interfaces:
Writeable,MultiBucketsAggregation.Bucket,SignificantTerms.Bucket
- 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.io.stream.Writeable
Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket
aggregations -
Constructor Summary
ConstructorsConstructorDescriptionBucket(org.apache.lucene.util.BytesRef term, long subsetDf, long supersetDf, InternalAggregations aggregations, DocValueFormat format, double score) Bucket(StreamInput in, DocValueFormat format) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()inthashCode()protected XContentBuilderkeyToXContent(XContentBuilder builder) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket
getAggregations, getDocCount, getSignificanceScore, getSubsetDf, getSupersetDfMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getProperty
-
Constructor Details
-
Bucket
public Bucket(org.apache.lucene.util.BytesRef term, long subsetDf, long supersetDf, InternalAggregations aggregations, DocValueFormat format, double score) -
Bucket
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
getKeyAsString
- Returns:
- The key associated with the bucket as a string
-
getKey
- Returns:
- The key associated with the bucket
-
keyToXContent
- Specified by:
keyToXContentin classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>- Throws:
IOException
-
equals
- Overrides:
equalsin classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-