Class LongRareTerms
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<LongRareTerms,LongRareTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.LongRareTerms
- All Implemented Interfaces:
NamedWriteable
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
,Aggregation
,MultiBucketsAggregation
,RareTerms
Result of the RareTerms aggregation when the field is some kind of whole number like a integer, long, or a date.
-
Nested Class Summary
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, InternalAggregation.ReduceContextBuilder
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalMappedRareTerms
bucketMap, buckets, format, 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToFilter(SetBackedScalingCuckooFilter filter, LongRareTerms.Bucket bucket)
boolean
containsTerm(SetBackedScalingCuckooFilter filter, LongRareTerms.Bucket bucket)
create(List<LongRareTerms.Bucket> buckets)
Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.createBucket(InternalAggregations aggregations, LongRareTerms.Bucket prototype)
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.protected LongRareTerms.Bucket[]
createBucketsArray(int size)
Create an array to hold some buckets.protected LongRareTerms
createWithFilter(String name, List<LongRareTerms.Bucket> buckets, SetBackedScalingCuckooFilter filter)
Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalMappedRareTerms
doXContentBody, equals, getBucketByKey, getBuckets, getMaxDocCount, hashCode, reduce, writeTermTypeInfoTo
Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms
doWriteTo, doXContentCommon, reduceBucket
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelines
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, 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.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
LongRareTerms
Read from a stream.- Throws:
IOException
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object -
create
Description copied from class:InternalMultiBucketAggregation
Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.- Specified by:
create
in classInternalMultiBucketAggregation<LongRareTerms,LongRareTerms.Bucket>
- Parameters:
buckets
- the buckets to use in the newAggregation
- Returns:
- the new
Aggregation
-
createBucket
public LongRareTerms.Bucket createBucket(InternalAggregations aggregations, LongRareTerms.Bucket prototype)Description copied from class:InternalMultiBucketAggregation
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.- Specified by:
createBucket
in classInternalMultiBucketAggregation<LongRareTerms,LongRareTerms.Bucket>
- Parameters:
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototype- Returns:
- the new bucket
-
createWithFilter
protected LongRareTerms createWithFilter(String name, List<LongRareTerms.Bucket> buckets, SetBackedScalingCuckooFilter filter)- Specified by:
createWithFilter
in classInternalRareTerms<LongRareTerms,LongRareTerms.Bucket>
-
createBucketsArray
Description copied from class:InternalRareTerms
Create an array to hold some buckets. Used in collecting the results.- Specified by:
createBucketsArray
in classInternalRareTerms<LongRareTerms,LongRareTerms.Bucket>
-
containsTerm
- Specified by:
containsTerm
in classInternalMappedRareTerms<LongRareTerms,LongRareTerms.Bucket>
-
addToFilter
- Specified by:
addToFilter
in classInternalMappedRareTerms<LongRareTerms,LongRareTerms.Bucket>
-