public class DoubleTerms extends InternalTerms<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>
InternalMultiBucketAggregation.InternalBucketInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeTerms.Order, Terms.ValueTypeToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static AggregationStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
bucketMap, buckets, DOC_COUNT_ERROR_UPPER_BOUND_FIELD_NAME, docCountError, minDocCount, order, otherDocCount, requiredSize, shardSize, showTermDocCountError, SUM_OF_OTHER_DOC_COUNTSmetaData, nameEMPTY_PARAMS| Constructor and Description |
|---|
DoubleTerms(String name,
Terms.Order order,
ValueFormatter formatter,
int requiredSize,
int shardSize,
long minDocCount,
List<? extends InternalTerms.Bucket> buckets,
boolean showTermDocCountError,
long docCountError,
long otherDocCount,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
| Modifier and Type | Method and Description |
|---|---|
DoubleTerms |
create(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(String name,
List<InternalTerms.Bucket> buckets,
long docCountError,
long otherDocCount,
InternalTerms prototype) |
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 void |
doReadFrom(StreamInput in) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
doReduce, getBucketByKey, getBuckets, getDocCountError, getSumOfOtherDocCountsgetPropertygetMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getPropertytoXContentreadFrom, writeTopublic static final InternalAggregation.Type TYPE
public static final AggregationStreams.Stream STREAM
public DoubleTerms(String name, Terms.Order order, ValueFormatter formatter, int requiredSize, int shardSize, long minDocCount, List<? extends InternalTerms.Bucket> buckets, boolean showTermDocCountError, long docCountError, long otherDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStreams()
public InternalAggregation.Type type()
type in class InternalAggregationInternalAggregation.Type of this aggregationpublic DoubleTerms create(List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets)
InternalMultiBucketAggregationAggregation 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 AggregationAggregationpublic org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.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(String name, List<InternalTerms.Bucket> buckets, long docCountError, long otherDocCount, InternalTerms prototype)
create in class InternalTerms<DoubleTerms,org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket>protected void doReadFrom(StreamInput in) throws IOException
doReadFrom in class InternalAggregationIOExceptionprotected void doWriteTo(StreamOutput out) throws IOException
doWriteTo in class InternalAggregationIOExceptionpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContentBody in class InternalAggregationIOExceptionCopyright © 2009–2017. All rights reserved.