public static class InternalRange.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Range.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
protected DocValueFormat |
format |
protected double |
from |
protected boolean |
keyed |
protected double |
to |
EMPTY_PARAMS| Constructor and Description |
|---|
Bucket(boolean keyed,
DocValueFormat formatter) |
Bucket(java.lang.String key,
double from,
double to,
long docCount,
InternalAggregations aggregations,
boolean keyed,
DocValueFormat formatter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
generateKey(double from,
double to,
DocValueFormat formatter) |
Aggregations |
getAggregations() |
long |
getDocCount() |
protected InternalRange.Factory<? extends InternalRange.Bucket,?> |
getFactory() |
DocValueFormat |
getFormat() |
java.lang.Object |
getFrom() |
java.lang.String |
getFromAsString() |
java.lang.String |
getKey() |
java.lang.String |
getKeyAsString() |
boolean |
getKeyed() |
java.lang.Object |
getTo() |
java.lang.String |
getToAsString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentprotected final transient boolean keyed
protected final transient DocValueFormat format
protected double from
protected double to
public Bucket(boolean keyed,
DocValueFormat formatter)
public Bucket(java.lang.String key,
double from,
double to,
long docCount,
InternalAggregations aggregations,
boolean keyed,
DocValueFormat formatter)
public java.lang.String getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic java.lang.String getKeyAsString()
getKeyAsString in interface MultiBucketsAggregation.Bucketpublic java.lang.Object getFrom()
getFrom in interface Range.Bucketpublic java.lang.Object getTo()
getTo in interface Range.Bucketpublic boolean getKeyed()
public DocValueFormat getFormat()
public java.lang.String getFromAsString()
getFromAsString in interface Range.Bucketpublic java.lang.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 java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionprotected java.lang.String generateKey(double from,
double to,
DocValueFormat formatter)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable