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