public class InternalDateHistogram extends InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket> implements DateHistogram
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeDateHistogram.IntervalHistogram.OrderToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsbucketsnameEMPTY_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, writeTogetName, readSize, toXContent, writeSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBucketByKey, getBucketsgetNamepublic 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)
HistogramgetBucketByKey in interface DateHistogramgetBucketByKey in interface HistogramgetBucketByKey in interface MultiBucketsAggregationgetBucketByKey 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 DateHistogramprotected 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 StreamablereadFrom in class InternalHistogram<org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram.Bucket>IOExceptionCopyright © 2009–2016. All rights reserved.