public class InternalDateHistogram extends InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket> implements DateHistogram
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
DateHistogram.Interval
Histogram.Order
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
buckets
name
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket |
createBucket(long key,
long docCount,
InternalAggregations aggregations,
ValueFormatter formatter) |
DateHistogram.Bucket |
getBucketByKey(org.joda.time.DateTime key) |
org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket |
getBucketByKey(String key)
Returns a bucket by the key associated with it.
|
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram.Factory<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket> |
getFactory() |
void |
readFrom(StreamInput in) |
static void |
registerStream() |
InternalAggregation.Type |
type() |
doXContentBody, getBucketByKey, getBuckets, reduce, writeTo
getName, readSize, toXContent, writeSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBucketByKey, getBuckets
getName
public static void registerStream()
public InternalAggregation.Type type()
type
in class InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket>
InternalAggregation.Type
of this aggregationprotected org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram.Factory<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket> getFactory()
getFactory
in class InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket>
public org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket getBucketByKey(String key)
Histogram
getBucketByKey
in interface DateHistogram
getBucketByKey
in interface Histogram
getBucketByKey
in interface MultiBucketsAggregation
getBucketByKey
in class InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket>
key
- The key of the bucket.public DateHistogram.Bucket getBucketByKey(org.joda.time.DateTime key)
getBucketByKey
in interface DateHistogram
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket createBucket(long key, long docCount, InternalAggregations aggregations, ValueFormatter formatter)
createBucket
in class InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket>
IOException
Copyright © 2009–2015. All rights reserved.