public class DoubleTerms extends InternalMappedTerms<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>
TermsAggregator
when the field is some kind of decimal number like a float, double, or distance.InternalMultiBucketAggregation.InternalBucket
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
Terms.Order, Terms.ValueType
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
bucketMap, buckets, docCountError, format, otherDocCount, shardSize, showTermDocCountError
DOC_COUNT_ERROR_UPPER_BOUND_FIELD_NAME, minDocCount, order, requiredSize, SUM_OF_OTHER_DOC_COUNTS
metaData, name
EMPTY_PARAMS
Constructor and Description |
---|
DoubleTerms(StreamInput in)
Read from a stream.
|
DoubleTerms(java.lang.String name,
Terms.Order order,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData,
DocValueFormat format,
int shardSize,
boolean showTermDocCountError,
long otherDocCount,
java.util.List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets,
long docCountError) |
Modifier and Type | Method and Description |
---|---|
DoubleTerms |
create(java.util.List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
protected DoubleTerms |
create(java.lang.String name,
java.util.List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets,
long docCountError,
long otherDocCount) |
org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket |
createBucket(InternalAggregations aggregations,
org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket[] |
createBucketsArray(int size)
Create an array to hold some buckets.
|
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
getBucketByKey, getBucketsInternal, getDocCountError, getShardSize, getSumOfOtherDocCounts, setDocCountError, writeTermTypeInfoTo
doReduce, doWriteTo, getBuckets
getProperty
getMetaData, getName, getProperty, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getProperty
toXContent
public static final java.lang.String NAME
public DoubleTerms(java.lang.String name, Terms.Order order, int requiredSize, long minDocCount, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, java.util.List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets, long docCountError)
public DoubleTerms(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
public DoubleTerms create(java.util.List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypeprotected DoubleTerms create(java.lang.String name, java.util.List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets, long docCountError, long otherDocCount)
create
in class InternalTerms<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class InternalAggregation
java.io.IOException
protected org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket[] createBucketsArray(int size)
InternalTerms
createBucketsArray
in class InternalTerms<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>