Module org.elasticsearch.server
Class InternalRareTerms.Bucket<B extends InternalRareTerms.Bucket<B>>
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucketWritable
org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket<B>
- All Implemented Interfaces:
Writeable,MultiBucketsAggregation.Bucket,RareTerms.Bucket,KeyComparable<B>
- 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.InternalBucketWritable
implements RareTerms.Bucket, KeyComparable<B>, Writeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReads a bucket.Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InternalAggregationsprotected longprotected final DocValueFormat -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBucket(long docCount, InternalAggregations aggregations, DocValueFormat formatter) protectedBucket(StreamInput in, DocValueFormat formatter) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()protected abstract XContentBuilderkeyToXContent(XContentBuilder builder) protected abstract voidwriteTermTo(StreamOutput out) final voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.KeyComparable
compareKeyMethods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket
getKey, getKeyAsString
-
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:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
writeTermTo
- Throws:
IOException
-
getDocCount
public long getDocCount()- Specified by:
getDocCountin interfaceMultiBucketsAggregation.Bucket- Returns:
- The number of documents that fall within this bucket
-
getAggregations
- Specified by:
getAggregationsin interfaceMultiBucketsAggregation.Bucket- Returns:
- The sub-aggregations of this bucket
-
keyToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-