public static class InternalBinaryRange.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Range.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor and Description |
---|
Bucket(DocValueFormat format,
boolean keyed,
java.lang.String key,
org.apache.lucene.util.BytesRef from,
org.apache.lucene.util.BytesRef to,
long docCount,
InternalAggregations aggregations) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
java.lang.Object |
getFrom() |
java.lang.String |
getFromAsString() |
java.lang.Object |
getKey() |
java.lang.String |
getKeyAsString() |
java.lang.Object |
getTo() |
java.lang.String |
getToAsString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public Bucket(DocValueFormat format, boolean keyed, java.lang.String key, org.apache.lucene.util.BytesRef from, org.apache.lucene.util.BytesRef to, long docCount, InternalAggregations aggregations)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.Object getKey()
getKey
in interface MultiBucketsAggregation.Bucket
public java.lang.String getKeyAsString()
getKeyAsString
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 java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.Object getFrom()
getFrom
in interface Range.Bucket
public java.lang.String getFromAsString()
getFromAsString
in interface Range.Bucket
public java.lang.Object getTo()
getTo
in interface Range.Bucket
public java.lang.String getToAsString()
getToAsString
in interface Range.Bucket