Writeable
, ToXContent
, Histogram.Bucket
, MultiBucketsAggregation.Bucket
, HasAggregations
, KeyComparable<InternalDateHistogram.Bucket>
public static class InternalDateHistogram.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Histogram.Bucket, KeyComparable<InternalDateHistogram.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
protected DocValueFormat |
format |
EMPTY_PARAMS
Constructor | Description |
---|---|
Bucket(long key,
long docCount,
boolean keyed,
DocValueFormat format,
InternalAggregations aggregations) |
|
Bucket(StreamInput in,
boolean keyed,
DocValueFormat format) |
Read from a stream.
|
Modifier and Type | Method | Description |
---|---|---|
int |
compareKey(InternalDateHistogram.Bucket other) |
Compare this
MultiBucketsAggregation.Bucket s key with another bucket. |
boolean |
equals(java.lang.Object obj) |
|
Aggregations |
getAggregations() |
|
long |
getDocCount() |
|
DocValueFormat |
getFormatter() |
|
java.lang.Object |
getKey() |
|
java.lang.String |
getKeyAsString() |
|
boolean |
getKeyed() |
|
int |
hashCode() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
getProperty
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
protected final transient DocValueFormat format
public Bucket(long key, long docCount, boolean keyed, DocValueFormat format, InternalAggregations aggregations)
public Bucket(StreamInput in, boolean keyed, DocValueFormat format) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.String getKeyAsString()
getKeyAsString
in interface MultiBucketsAggregation.Bucket
public java.lang.Object getKey()
getKey
in interface MultiBucketsAggregation.Bucket
public long getDocCount()
getDocCount
in interface MultiBucketsAggregation.Bucket
public Aggregations getAggregations()
getAggregations
in interface HasAggregations
getAggregations
in interface MultiBucketsAggregation.Bucket
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public int compareKey(InternalDateHistogram.Bucket other)
KeyComparable
MultiBucketsAggregation.Bucket
s key
with another bucket.compareKey
in interface KeyComparable<InternalDateHistogram.Bucket>
other
- the bucket that contains the key to compare to.Comparable.compareTo(Object)
public DocValueFormat getFormatter()
public boolean getKeyed()