Module org.elasticsearch.server
Class DoubleTerms
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<DoubleTerms,DoubleTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.AbstractInternalTerms<DoubleTerms,DoubleTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.InternalTerms<DoubleTerms,DoubleTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.InternalMappedTerms<DoubleTerms,DoubleTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms
- All Implemented Interfaces:
NamedWriteable,Writeable,Aggregation,MultiBucketsAggregation,Terms,ToXContent,ToXContentFragment
Result of the
TermsAggregator when the field is some kind of decimal number like a float, double, or distance.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.terms.AbstractInternalTerms
AbstractInternalTerms.AbstractTermsBucket<B extends AbstractInternalTerms.AbstractTermsBucket<B>>Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
InternalMultiBucketAggregation.BucketAggregationList<B extends MultiBucketsAggregation.Bucket>, InternalMultiBucketAggregation.InternalBucket, InternalMultiBucketAggregation.InternalBucketWritableNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested 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.InternalMappedTerms
bucketMap, buckets, docCountError, format, otherDocCount, shardSize, showTermDocCountErrorFields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalTerms
DOC_COUNT_ERROR_UPPER_BOUND_FIELD_NAME, minDocCount, order, reduceOrder, requiredSize, SUM_OF_OTHER_DOC_COUNTSFields inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
REPORT_EMPTY_EVERYFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDoubleTerms(String name, BucketOrder reduceOrder, BucketOrder order, int requiredSize, long minDocCount, Map<String, Object> metadata, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, List<DoubleTerms.Bucket> buckets, Long docCountError) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected DoubleTermscreate(String name, List<DoubleTerms.Bucket> buckets, BucketOrder reduceOrder, long docCountError, long otherDocCount) Creates InternalTerms at the end of the mergecreate(List<DoubleTerms.Bucket> buckets) Create a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.protected DoubleTerms.BucketcreateBucket(long docCount, InternalAggregations aggs, long docCountError, DoubleTerms.Bucket prototype) createBucket(InternalAggregations aggregations, DoubleTerms.Bucket prototype) Create a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.protected AggregatorReducergetLeaderReducer(AggregationReduceContext reduceContext, int size) Return an object that Reduces several aggregations to a single one.Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalMappedTerms
doXContentBody, equals, getBucketByKey, getBuckets, getDocCountError, getShardSize, getShowDocCountError, getSumOfOtherDocCounts, hashCode, setDocCountError, writeTermTypeInfoToMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalTerms
doWriteTo, getMinDocCount, getOrder, getReduceOrder, getRequiredSizeMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.AbstractInternalTerms
doXContentCommon, finalizeSampling, termsAggregationReducerMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, getMetadata, getName, getProperty, getReducer, getType, readSize, sortValue, sortValue, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getTypeMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DoubleTerms
public DoubleTerms(String name, BucketOrder reduceOrder, BucketOrder order, int requiredSize, long minDocCount, Map<String, Object> metadata, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, List<DoubleTerms.Bucket> buckets, Long docCountError) -
DoubleTerms
Read from a stream.- Throws:
IOException
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object -
create
Description copied from class:InternalMultiBucketAggregationCreate a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.- Specified by:
createin classInternalMultiBucketAggregation<DoubleTerms,DoubleTerms.Bucket> - Parameters:
buckets- the buckets to use in the newAggregation- Returns:
- the new
Aggregation
-
createBucket
public DoubleTerms.Bucket createBucket(InternalAggregations aggregations, DoubleTerms.Bucket prototype) Description copied from class:InternalMultiBucketAggregationCreate a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.- Specified by:
createBucketin classInternalMultiBucketAggregation<DoubleTerms,DoubleTerms.Bucket> - Parameters:
aggregations- the aggregations for the new bucketprototype- the bucket to use as a prototype- Returns:
- the new bucket
-
create
protected DoubleTerms create(String name, List<DoubleTerms.Bucket> buckets, BucketOrder reduceOrder, long docCountError, long otherDocCount) Description copied from class:AbstractInternalTermsCreates InternalTerms at the end of the merge- Specified by:
createin classInternalTerms<DoubleTerms,DoubleTerms.Bucket>
-
getLeaderReducer
Description copied from class:InternalAggregationReturn 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:
getLeaderReducerin classInternalAggregation
-
createBucket
protected DoubleTerms.Bucket createBucket(long docCount, InternalAggregations aggs, long docCountError, DoubleTerms.Bucket prototype) - Specified by:
createBucketin classAbstractInternalTerms<DoubleTerms,DoubleTerms.Bucket>
-