DatePart

data class DatePart(val field: QueryField, val alias: String, val part: AggregationDatePart, val timeZone: String = "UTC", val dense: Boolean = false) : AggregationGroup

Groups by one calendar part of the field's instant in timeZone, such as the weekday or the hour, so records from different days fall into one bucket. Keys are integers from AggregationDatePart's fixed domain; dense fills every key of that domain that has no records with the empty value of each metric.

Constructors

Link copied to clipboard
constructor(field: QueryField, alias: String, part: AggregationDatePart, timeZone: String = "UTC", dense: Boolean = false)

Properties

Link copied to clipboard
open override val alias: String
Link copied to clipboard
Link copied to clipboard
open override val field: QueryField

The grouped field; null only for a TERMS or HISTOGRAM group whose input is an expression.

Link copied to clipboard
Link copied to clipboard