public class InternalHistogram<B extends InternalHistogram.Bucket> extends InternalMultiBucketAggregation<InternalHistogram,B> implements Histogram
Histogram)?| Modifier and Type | Class and Description |
|---|---|
static class |
InternalHistogram.Bucket |
static class |
InternalHistogram.Factory<B extends InternalHistogram.Bucket> |
InternalMultiBucketAggregation.InternalBucketInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeHistogram.OrderToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected List<B> |
buckets |
protected InternalHistogram.Factory<B> |
factory |
metaData, nameEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
InternalHistogram<B> |
create(List<B> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
B |
createBucket(InternalAggregations aggregations,
B prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected void |
doReadFrom(StreamInput in) |
InternalAggregation |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
List<B> |
getBuckets() |
InternalHistogram.Factory<B> |
getFactory() |
Rounding |
getRounding() |
static void |
registerStream() |
InternalAggregation.Type |
type() |
getPropertygetMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getPropertyprotected List<B extends InternalHistogram.Bucket> buckets
protected InternalHistogram.Factory<B extends InternalHistogram.Bucket> factory
public static void registerStream()
public InternalAggregation.Type type()
type in class InternalAggregationInternalAggregation.Type of this aggregationpublic List<B> getBuckets()
getBuckets in interface HistogramgetBuckets in interface MultiBucketsAggregationpublic InternalHistogram.Factory<B> getFactory()
public Rounding getRounding()
public InternalHistogram<B> create(List<B> buckets)
InternalMultiBucketAggregationAggregation with the same settings as
this Aggregation and contains the provided buckets.create in class InternalMultiBucketAggregation<InternalHistogram,B extends InternalHistogram.Bucket>buckets - the buckets to use in the new AggregationAggregationpublic B createBucket(InternalAggregations aggregations, B prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations.createBucket in class InternalMultiBucketAggregation<InternalHistogram,B extends InternalHistogram.Bucket>aggregations - the aggregations for the new bucketprototype - the bucket to use as a prototypepublic InternalAggregation doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationprotected 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.