public static class InternalHistogram.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Histogram.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected ValueFormatter |
formatter |
EMPTY_PARAMS| Constructor and Description |
|---|
InternalHistogram.Bucket(boolean keyed,
ValueFormatter formatter,
InternalHistogram.Factory<?> factory) |
InternalHistogram.Bucket(long key,
long docCount,
boolean keyed,
ValueFormatter formatter,
InternalHistogram.Factory factory,
InternalAggregations aggregations) |
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
protected InternalHistogram.Factory<?> |
getFactory() |
ValueFormatter |
getFormatter() |
Object |
getKey() |
String |
getKeyAsString() |
boolean |
getKeyed() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyprotected final transient ValueFormatter formatter
public InternalHistogram.Bucket(boolean keyed,
ValueFormatter formatter,
InternalHistogram.Factory<?> factory)
public InternalHistogram.Bucket(long key,
long docCount,
boolean keyed,
ValueFormatter formatter,
InternalHistogram.Factory factory,
InternalAggregations aggregations)
protected InternalHistogram.Factory<?> getFactory()
public String getKeyAsString()
getKeyAsString in interface MultiBucketsAggregation.Bucketpublic Object getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic Aggregations getAggregations()
getAggregations in interface MultiBucketsAggregation.BucketgetAggregations in interface HasAggregationspublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic ValueFormatter getFormatter()
public boolean getKeyed()
Copyright © 2009–2017. All rights reserved.