Class SignificantStringTerms.Bucket
- java.lang.Object
-
- org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
-
- org.elasticsearch.search.aggregations.bucket.significant.InternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-
- org.elasticsearch.search.aggregations.bucket.significant.SignificantStringTerms.Bucket
-
- All Implemented Interfaces:
Writeable,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.significant.InternalSignificantTerms.Bucket
InternalSignificantTerms.Bucket.Reader<B extends InternalSignificantTerms.Bucket<B>>
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.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.significant.InternalSignificantTerms.Bucket
aggregations
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description Bucket(BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, double score, DocValueFormat format)Bucket(BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format)Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format)Read from a stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetKey()NumbergetKeyAsNumber()StringgetKeyAsString()inthashCode()protected XContentBuilderkeyToXContent(XContentBuilder builder)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.search.aggregations.bucket.significant.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 Detail
-
Bucket
public Bucket(BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format)
-
Bucket
public Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) throws IOException
Read from a stream.- Throws:
IOException
-
Bucket
public Bucket(BytesRef term, long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, double score, DocValueFormat format)
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
getKeyAsNumber
public Number getKeyAsNumber()
- Returns:
- The key, expressed as a number
-
getKeyAsString
public String getKeyAsString()
- Returns:
- The key associated with the bucket as a string
-
getKey
public String getKey()
- Returns:
- The key associated with the bucket
-
keyToXContent
protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException
- Specified by:
keyToXContentin classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>- Throws:
IOException
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classInternalSignificantTerms.Bucket<SignificantStringTerms.Bucket>
-
-