Module org.elasticsearch.server
Class DateHistogramValuesSource
java.lang.Object
org.elasticsearch.search.aggregations.bucket.composite.DateHistogramValuesSource
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable,SizedBucketAggregator
A
SingleDimensionValuesSource for date histogram values.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected final MappedFieldTypeprotected final DocValueFormatprotected final booleanprotected final MissingOrderprotected final int -
Method Summary
Modifier and TypeMethodDescriptiondoublebucketSize(long bucket, Rounding.DateTimeUnit unitSize) Reports size of the particular bucket in requested units.doublebucketSize(Rounding.DateTimeUnit unitSize) Reports size of all buckets in requested units.protected booleancheckIfSortedDocsIsApplicable(org.apache.lucene.index.IndexReader reader, MappedFieldType fieldType) Returns true if aSortedDocsProducershould be used to optimize the execution.voidclose()
-
Field Details
-
format
-
fieldType
-
missingBucket
protected final boolean missingBucket -
missingOrder
-
reverseMul
protected final int reverseMul -
afterValue
-
-
Method Details
-
bucketSize
Description copied from interface:SizedBucketAggregatorReports size of the particular bucket in requested units.- Specified by:
bucketSizein interfaceSizedBucketAggregator
-
bucketSize
Description copied from interface:SizedBucketAggregatorReports size of all buckets in requested units. Throws an exception if it is not possible to calculate without knowing the concrete bucket.- Specified by:
bucketSizein interfaceSizedBucketAggregator
-
close
public void close() -
checkIfSortedDocsIsApplicable
protected boolean checkIfSortedDocsIsApplicable(org.apache.lucene.index.IndexReader reader, MappedFieldType fieldType) Returns true if aSortedDocsProducershould be used to optimize the execution.
-