AggregationSupport

data class AggregationSupport(val having: SupportMode = SupportMode.NATIVE, val topN: SupportMode = SupportMode.NATIVE, val denseFill: SupportMode = SupportMode.NATIVE, val percentile: SupportMode = SupportMode.NATIVE, val distinctCount: SupportMode = SupportMode.NATIVE, val firstLast: SupportMode = SupportMode.NATIVE, val windows: Map<WindowFunction, SupportMode> = RESIDUAL_WINDOWS, val rootGroups: SupportMode = SupportMode.NATIVE, val termsTopN: Set<MetricSpec> = emptySet())

How a storage aggregates. HAVING, top-N by a metric, dense date-histogram fill and the windows may be RESIDUAL; percentiles and distinct counts need the records themselves, so they are NATIVE or NONE.

Constructors

Link copied to clipboard
constructor(having: SupportMode = SupportMode.NATIVE, topN: SupportMode = SupportMode.NATIVE, denseFill: SupportMode = SupportMode.NATIVE, percentile: SupportMode = SupportMode.NATIVE, distinctCount: SupportMode = SupportMode.NATIVE, firstLast: SupportMode = SupportMode.NATIVE, windows: Map<WindowFunction, SupportMode> = RESIDUAL_WINDOWS, rootGroups: SupportMode = SupportMode.NATIVE, termsTopN: Set<MetricSpec> = emptySet())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Filling the empty buckets of a dense date histogram.

Link copied to clipboard
Link copied to clipboard

FIRST and LAST: the value on the earliest or latest record of a group by an ordering field.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Grouping the elements of a query that expands them by a field of their root record (scope: ROOT). NATIVE or NONE: with NONE admission rejects such a group and the descriptor says rootGroups: false.

Link copied to clipboard

Where topN is RESIDUAL: the metric types the storage orders one TERMS group by itself, taking the first limit groups exactly, so such a query reads no more groups than it returns. Empty: topN alone decides.

Link copied to clipboard

Ordering groups by a metric before the limit.

Link copied to clipboard

The window functions of derived metrics; a function absent from the map is NONE. A RESIDUAL window is computed by the core over every group the storage returns.

Functions

Link copied to clipboard

How the storage supports function.