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) |
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
protected 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.Bucket
public Object getKey()
getKey
in interface MultiBucketsAggregation.Bucket
public long getDocCount()
getDocCount
in interface MultiBucketsAggregation.Bucket
public Aggregations getAggregations()
getAggregations
in interface MultiBucketsAggregation.Bucket
getAggregations
in interface HasAggregations
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public ValueFormatter getFormatter()
public boolean getKeyed()
Copyright © 2009–2017. All rights reserved.