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) |
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
protected 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.Bucket
public String getKeyAsString()
getKeyAsString
in interface MultiBucketsAggregation.Bucket
public Object getFrom()
getFrom
in interface Range.Bucket
public Object getTo()
getTo
in interface Range.Bucket
public boolean getKeyed()
public ValueFormatter getFormatter()
public String getFromAsString()
getFromAsString
in interface Range.Bucket
public String getToAsString()
getToAsString
in interface Range.Bucket
public long getDocCount()
getDocCount
in interface MultiBucketsAggregation.Bucket
public Aggregations getAggregations()
getAggregations
in interface MultiBucketsAggregation.Bucket
getAggregations
in interface HasAggregations
protected InternalRange.Factory<? extends InternalRange.Bucket,?> getFactory()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
protected String generateKey(double from, double to, ValueFormatter formatter)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.