Class InternalRareTerms.Bucket<B extends InternalRareTerms.Bucket<B>>
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket<B>
- All Implemented Interfaces:
Writeable
,MultiBucketsAggregation.Bucket
,RareTerms.Bucket
,HasAggregations
,KeyComparable<B>
,ToXContent
- Direct Known Subclasses:
LongRareTerms.Bucket
,StringRareTerms.Bucket
,UnmappedRareTerms.Bucket
- Enclosing class:
- InternalRareTerms<A extends InternalRareTerms<A,
B>, B extends InternalRareTerms.Bucket<B>>
public abstract static class InternalRareTerms.Bucket<B extends InternalRareTerms.Bucket<B>>
extends InternalMultiBucketAggregation.InternalBucket
implements RareTerms.Bucket, KeyComparable<B>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Reads a bucket.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
Modifier and TypeFieldDescriptionprotected InternalAggregations
protected long
protected final DocValueFormat
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
Bucket
(long docCount, InternalAggregations aggregations, DocValueFormat formatter) protected
Bucket
(StreamInput in, DocValueFormat formatter) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
hashCode()
protected abstract XContentBuilder
keyToXContent
(XContentBuilder builder) final XContentBuilder
toXContent
(XContentBuilder builder, ToXContent.Params params) protected abstract void
writeTermTo
(StreamOutput out) final void
writeTo
(StreamOutput out) Write this into the StreamOutput.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.search.aggregations.KeyComparable
compareKey
Methods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket
getKey, getKeyAsString
Methods inherited from interface org.elasticsearch.search.aggregations.bucket.terms.RareTerms.Bucket
getKeyAsNumber
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Field Details
-
docCount
protected long docCount -
aggregations
-
format
-
-
Constructor Details
-
Bucket
-
Bucket
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
writeTermTo
- Throws:
IOException
-
getDocCount
public long getDocCount()- Specified by:
getDocCount
in interfaceMultiBucketsAggregation.Bucket
- Returns:
- The number of documents that fall within this bucket
-
getAggregations
- Specified by:
getAggregations
in interfaceHasAggregations
- Specified by:
getAggregations
in interfaceMultiBucketsAggregation.Bucket
- Returns:
- The sub-aggregations of this bucket
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
keyToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-