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>
bucketMap
protected java.util.List<B>
buckets
protected DocValueFormat
format
protected org.apache.logging.log4j.Logger
logger
-
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 void
addToFilter(SetBackedScalingCuckooFilter filter, B bucket)
abstract boolean
containsTerm(SetBackedScalingCuckooFilter filter, B bucket)
InternalAggregation
doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
XContentBuilder
doXContentBody(XContentBuilder builder, ToXContent.Params params)
boolean
equals(java.lang.Object obj)
B
getBucketByKey(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.long
getMaxDocCount()
int
hashCode()
protected void
writeTermTypeInfoTo(StreamOutput out)
-
Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms
createBucketsArray, createWithFilter, doWriteTo, doXContentCommon, reduceBucket
-
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:
writeTermTypeInfoTo
in 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:
doReduce
in 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: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.
-
getBucketByKey
public B getBucketByKey(java.lang.String term)
Description copied from interface:RareTerms
Get the bucket for the given term, or null if there is no such bucket.- Specified by:
getBucketByKey
in interfaceRareTerms
- Specified by:
getBucketByKey
in classInternalRareTerms<A extends InternalRareTerms<A,B>,B extends InternalRareTerms.Bucket<B>>
-
equals
public boolean equals(java.lang.Object obj)
- 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 java.io.IOException
- Specified by:
doXContentBody
in classInternalAggregation
- Throws:
java.io.IOException
-
-