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,ToXContent,ToXContentFragment,Aggregation,MultiBucketsAggregation,RareTerms
- 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.InternalBucket
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
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.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,B>bucketMapprotected java.util.List<B>bucketsprotected DocValueFormatformatprotected org.apache.logging.log4j.Loggerlogger-
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms
maxDocCount, order
-
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.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description abstract voidaddToFilter(SetBackedScalingCuckooFilter filter, B bucket)abstract booleancontainsTerm(SetBackedScalingCuckooFilter filter, B bucket)InternalAggregationdoReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)booleanequals(java.lang.Object obj)BgetBucketByKey(java.lang.String term)Get the bucket for the given term, or null if there is no such bucket.java.util.List<B>getBuckets()Return the sorted list of the buckets in this terms aggregation.longgetMaxDocCount()inthashCode()protected voidwriteTermTypeInfoTo(StreamOutput out)-
Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms
createBucketsArray, createWithFilter, doWriteTo, doXContentCommon
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
countInnerBucket, countInnerBucket, create, createBucket, getProperty
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, reduce, 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.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
format
protected DocValueFormat format
-
buckets
protected java.util.List<B extends InternalRareTerms.Bucket<B>> buckets
-
bucketMap
protected java.util.Map<java.lang.String,B extends InternalRareTerms.Bucket<B>> bucketMap
-
logger
protected final org.apache.logging.log4j.Logger logger
-
-
Method Detail
-
getMaxDocCount
public long getMaxDocCount()
-
writeTermTypeInfoTo
protected void writeTermTypeInfoTo(StreamOutput out) throws java.io.IOException
- Specified by:
writeTermTypeInfoToin classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>- Throws:
java.io.IOException
-
doReduce
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
- Overrides:
doReducein classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
-
containsTerm
public abstract boolean containsTerm(SetBackedScalingCuckooFilter filter, B bucket)
-
addToFilter
public abstract void addToFilter(SetBackedScalingCuckooFilter filter, B bucket)
-
getBuckets
public java.util.List<B> getBuckets()
Description copied from interface:RareTermsReturn the sorted list of the buckets in this terms aggregation.- Specified by:
getBucketsin interfaceMultiBucketsAggregation- Specified by:
getBucketsin interfaceRareTerms- Specified by:
getBucketsin classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>- Returns:
- The buckets of this aggregation.
-
getBucketByKey
public B getBucketByKey(java.lang.String term)
Description copied from interface:RareTermsGet the bucket for the given term, or null if there is no such bucket.- Specified by:
getBucketByKeyin interfaceRareTerms- Specified by:
getBucketByKeyin classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
-
doXContentBody
public final XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBodyin classInternalAggregation- Throws:
java.io.IOException
-
-