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,ToXContent,MultiBucketsAggregation.Bucket,RareTerms.Bucket,HasAggregations,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.InternalBucket implements RareTerms.Bucket, KeyComparable<B>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInternalRareTerms.Bucket.Reader<B extends InternalRareTerms.Bucket<B>>Reads a bucket.-
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 Modifier and Type Field Description protected InternalAggregationsaggregationsprotected longdocCountprotected DocValueFormatformat-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBucket(long docCount, InternalAggregations aggregations, DocValueFormat formatter)protectedBucket(StreamInput in, DocValueFormat formatter)Read from a stream.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AggregationsgetAggregations()longgetDocCount()inthashCode()protected abstract XContentBuilderkeyToXContent(XContentBuilder builder)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)protected abstract voidwriteTermTo(StreamOutput out)voidwriteTo(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.common.xcontent.ToXContent
isFragment
-
-
-
-
Field Detail
-
docCount
protected long docCount
-
aggregations
protected InternalAggregations aggregations
-
format
protected final DocValueFormat format
-
-
Constructor Detail
-
Bucket
protected Bucket(long docCount, InternalAggregations aggregations, DocValueFormat formatter)
-
Bucket
protected Bucket(StreamInput in, DocValueFormat formatter) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
writeTo
public final void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
writeTermTo
protected abstract void writeTermTo(StreamOutput out) throws IOException
- Throws:
IOException
-
getDocCount
public long getDocCount()
- Specified by:
getDocCountin interfaceMultiBucketsAggregation.Bucket- Returns:
- The number of documents that fall within this bucket
-
getAggregations
public Aggregations getAggregations()
- Specified by:
getAggregationsin interfaceHasAggregations- Specified by:
getAggregationsin interfaceMultiBucketsAggregation.Bucket- Returns:
- The sub-aggregations of this bucket
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
keyToXContent
protected abstract XContentBuilder keyToXContent(XContentBuilder builder) throws IOException
- Throws:
IOException
-
-