@Value.Immutable(copy=false) public interface DateHistogramAggregation extends BucketAggregation, ValuesSourceAggregation
HistogramAggregation} except it can only be
applied on date values.
Since dates are represented in Elasticsearch internally as long values, it is possible to use the normal histogram on dates as well, though accuracy will be compromised. The reason for this is in the fact that time based intervals are not fixed (think of leap years and on the number of days in a month). For this reason, we need special support for time based data.
From a functionality perspective, this histogram supports the same features as the normal histogram. The main difference is that the interval can be specified by date/time expressions.
ADJACENCY_MATRIX_AGGREGATION, AVG_AGGREGATION, CARDINALITY_AGGREGATION, DATE_HISTOGRAM_AGGREGATION, DATE_RANGE_AGGREGATION, EXTENDED_STATS_AGGREGATION, FILTER_AGGREGATION, FILTERS_AGGREGATION, GEO_BOUNDS_AGGREGATION, GEO_CENTROID_AGGREGATION, GEO_DISTANCE_AGGREGATION, GEOHASH_GRID_AGGREGATION, GLOBAL_AGGREGATION, HISTOGRAM_AGGREGATION, IP_RANGE_AGGREGATION, MAX_AGGREGATION, MIN_AGGREGATION, MISSING_AGGREGATION, NESTED_AGGREGATION, PERCENTILE_RANKS_AGGREGATION, PERCENTILES_AGGREGATION, RANGE_AGGREGATION, REVERSE_NESTED_AGGREGATION, SAMPLER_AGGREGATION, SIGNIFICANT_TERMS_AGGREGATION, SIGNIFICANT_TEXT_AGGREGATION, STATS_AGGREGATION, SUM_AGGREGATION, TERMS_AGGREGATION, VALUE_COUNT_AGGREGATION| Modifier and Type | Method and Description |
|---|---|
default void |
accept(AggregationVisitor visitor) |
java.lang.Long |
getExtendedBoundsMax() |
java.lang.Long |
getExtendedBoundsMin() |
java.lang.String |
getInterval() |
java.lang.Long |
getMinDocCount()
Returns the minimum number of hits required before returning a term.
|
java.lang.Long |
getOffset() |
default java.util.List<BucketOrder> |
getOrder()
Returns the bucket order.
|
java.lang.Boolean |
isKeyed() |
countNotEmpty, getName, getSubAggregations, isEmptygetField, getFormat, getMissing, getTimeZonejava.lang.Long getExtendedBoundsMax()
java.lang.Long getExtendedBoundsMin()
java.lang.String getInterval()
java.lang.Long getMinDocCount()
java.lang.Long getOffset()
@Value.Default default java.util.List<BucketOrder> getOrder()
java.lang.Boolean isKeyed()
default void accept(AggregationVisitor visitor)
accept in interface Aggregation