Module org.elasticsearch.server
Class InternalMappedRareTerms<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>
org.elasticsearch.search.aggregations.bucket.terms.InternalMappedRareTerms<A,B>
- All Implemented Interfaces:
NamedWriteable
,Writeable
,Aggregation
,MultiBucketsAggregation
,RareTerms
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
LongRareTerms
,StringRareTerms
public abstract class InternalMappedRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
extends InternalRareTerms<A,B>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms
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.bucket.terms.InternalRareTerms
maxDocCount, order
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addToFilter
(SetBackedScalingCuckooFilter filter, B bucket) abstract boolean
containsTerm
(SetBackedScalingCuckooFilter filter, B bucket) final XContentBuilder
doXContentBody
(XContentBuilder builder, ToXContent.Params params) boolean
finalizeSampling
(SamplingContext samplingContext) Called by the parent sampling context.Return the sorted list of the buckets in this terms aggregation.protected AggregatorReducer
getLeaderReducer
(AggregationReduceContext reduceContext, int size) Return an object that Reduces several aggregations to a single one.int
hashCode()
protected void
Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms
createWithFilter, doWriteTo, doXContentCommon
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, 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
-
format
-
buckets
-
-
Method Details
-
writeTermTypeInfoTo
- Specified by:
writeTermTypeInfoTo
in classInternalRareTerms<A extends InternalRareTerms<A,
B>, B extends InternalRareTerms.Bucket<B>> - Throws:
IOException
-
getLeaderReducer
Description copied from class:InternalAggregation
Return an object that Reduces several aggregations to a single one. This method is called whenInternalAggregation.canLeadReduction()
returns true and expects an reducer that produces the right result.- Specified by:
getLeaderReducer
in classInternalAggregation
-
finalizeSampling
Description copied from class:InternalAggregation
Called by the parent sampling context. Should only ever be called once as some aggregations scale their internal values- Overrides:
finalizeSampling
in classInternalAggregation
- Parameters:
samplingContext
- the current sampling context- Returns:
- new aggregation with the sampling context applied, could be the same aggregation instance if nothing needs to be done
-
containsTerm
-
addToFilter
-
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 classInternalRareTerms<A extends InternalRareTerms<A,
B>, B extends InternalRareTerms.Bucket<B>> - Returns:
- The buckets of this aggregation.
-
equals
- Overrides:
equals
in classInternalRareTerms<A extends InternalRareTerms<A,
B>, B extends InternalRareTerms.Bucket<B>>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalRareTerms<A extends InternalRareTerms<A,
B>, B extends InternalRareTerms.Bucket<B>>
-
doXContentBody
public final XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
doXContentBody
in classInternalAggregation
- Throws:
IOException
-