Module org.elasticsearch.server
Class InternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<A,B>
org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms<A,B>
- All Implemented Interfaces:
NamedWriteable
,Writeable
,Aggregation
,MultiBucketsAggregation
,RareTerms
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
InternalMappedRareTerms
,UnmappedRareTerms
public abstract class InternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
extends InternalMultiBucketAggregation<A,B>
implements RareTerms
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
InternalRareTerms.Bucket<B extends InternalRareTerms.Bucket<B>>
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
InternalMultiBucketAggregation.BucketAggregationList<B extends MultiBucketsAggregation.Bucket>, InternalMultiBucketAggregation.InternalBucket
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
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.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsFields inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
REPORT_EMPTY_EVERY
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, name
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InternalRareTerms
(String name, BucketOrder order, long maxDocCount, Map<String, Object> metadata) protected
Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract A
createWithFilter
(String name, List<B> buckets, SetBackedScalingCuckooFilter filter) protected final void
doWriteTo
(StreamOutput out) protected static XContentBuilder
doXContentCommon
(XContentBuilder builder, ToXContent.Params params, List<? extends InternalRareTerms.Bucket<?>> buckets) boolean
Return the sorted list of the buckets in this terms aggregation.int
hashCode()
protected abstract void
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, create, createBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelines
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, doXContentBody, finalizeSampling, getLeaderReducer, getMetadata, getName, getProperty, getReducer, getType, readSize, sortValue, sortValue, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
order
-
maxDocCount
protected final long maxDocCount
-
-
Constructor Details
-
InternalRareTerms
protected InternalRareTerms(String name, BucketOrder order, long maxDocCount, Map<String, Object> metadata) -
InternalRareTerms
Read from a stream.- Throws:
IOException
-
-
Method Details
-
doWriteTo
- Specified by:
doWriteTo
in classInternalAggregation
- Throws:
IOException
-
writeTermTypeInfoTo
- Throws:
IOException
-
getBuckets
Description copied from interface:RareTerms
Return the sorted list of the buckets in this terms aggregation.- Specified by:
getBuckets
in interfaceMultiBucketsAggregation
- Specified by:
getBuckets
in interfaceRareTerms
- Specified by:
getBuckets
in classInternalMultiBucketAggregation<A extends InternalRareTerms<A,
B>, B extends InternalRareTerms.Bucket<B>> - Returns:
- The buckets of this aggregation.
-
createWithFilter
protected abstract A createWithFilter(String name, List<B> buckets, SetBackedScalingCuckooFilter filter) -
equals
- Overrides:
equals
in classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalAggregation
-
doXContentCommon
protected static XContentBuilder doXContentCommon(XContentBuilder builder, ToXContent.Params params, List<? extends InternalRareTerms.Bucket<?>> buckets) throws IOException - Throws:
IOException
-