pub struct DistinctCount { /* private fields */ }
Expand description

Expression for a COUNT(DISTINCT) aggregation.

Implementations§

Create a new COUNT(DISTINCT) aggregate function.

Trait Implementations§

Return a reference to Any that can be used for downcasting

the field of the final result of this aggregation.
the fields that encapsulate the Accumulator’s state the number of fields here equals the number of states that the accumulator contains
expressions that are passed to the Accumulator. Single-column aggregations such as sum return a single value, others (e.g. cov) return many.
the accumulator used to accumulate values from the expressions. the accumulator expects the same number of arguments as expressions and must return states with the same description as state_fields
Human readable name such as "MIN(c2)". The default implementation returns placeholder text.
If the aggregate expression is supported by row format
Specifies whether this aggregate function can run using bounded memory. Any accumulator returning “true” needs to implement retract_batch.
RowAccumulator to access/update row-based aggregation state in-place. Currently, row accumulator only supports states of fixed-sized type. Read more
Construct an expression that calculates the aggregate in reverse. Typically the “reverse” expression is itself (e.g. SUM, COUNT). For aggregates that do not support calculation in reverse, returns None (which is the default value).
Creates accumulator implementation that supports retract
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.