public static class InternalRange.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Range.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected ValueFormatter |
formatter |
protected double |
from |
protected boolean |
keyed |
protected double |
to |
EMPTY_PARAMS| Constructor and Description |
|---|
InternalRange.Bucket(boolean keyed,
ValueFormatter formatter) |
InternalRange.Bucket(String key,
double from,
double to,
long docCount,
InternalAggregations aggregations,
boolean keyed,
ValueFormatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateKey(double from,
double to,
ValueFormatter formatter) |
Aggregations |
getAggregations() |
long |
getDocCount() |
protected InternalRange.Factory<? extends InternalRange.Bucket,?> |
getFactory() |
ValueFormatter |
getFormatter() |
Object |
getFrom() |
String |
getFromAsString() |
String |
getKey() |
String |
getKeyAsString() |
boolean |
getKeyed() |
Object |
getTo() |
String |
getToAsString() |
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 boolean keyed
protected final transient ValueFormatter formatter
protected double from
protected double to
public InternalRange.Bucket(boolean keyed,
ValueFormatter formatter)
public InternalRange.Bucket(String key, double from, double to, long docCount, InternalAggregations aggregations, boolean keyed, ValueFormatter formatter)
public String getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic String getKeyAsString()
getKeyAsString in interface MultiBucketsAggregation.Bucketpublic Object getFrom()
getFrom in interface Range.Bucketpublic Object getTo()
getTo in interface Range.Bucketpublic boolean getKeyed()
public ValueFormatter getFormatter()
public String getFromAsString()
getFromAsString in interface Range.Bucketpublic String getToAsString()
getToAsString in interface Range.Bucketpublic long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic Aggregations getAggregations()
getAggregations in interface MultiBucketsAggregation.BucketgetAggregations in interface HasAggregationsprotected InternalRange.Factory<? extends InternalRange.Bucket,?> getFactory()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionprotected String generateKey(double from, double to, ValueFormatter formatter)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.