Single Aggregator
A single-aggregation view on a PagedAggregator chain. Returned by each PagedAggregator builder method (the "one aggregate" case).
Two ways to execute:
Immediately as a typed scalar via execute — returns the single column value.
Chain another aggregation (
.sum,.avg, …,.raw) to produce a MultiAggregator whoseexecute()returns aMap<String, Any?>.
The expect / actual split exists so the JVM actual can add a execute(Class<R>) overload for Java callers without polluting the Native surface.
val total: BigDecimal? = list.getAggregator()
.sum(Company_.revenue)
.execute<BigDecimal>()JVM / Android actual of SingleAggregator. Adds a Java-friendly execute(Class<R>) overload on top of the common API so Java callers can write agg.sum(path).execute(BigDecimal.class).
Native actual of SingleAggregator. Delegates to the shared SingleAggregatorCore with no platform-specific additions.
Properties
Functions
Chains an AVG(path) aggregation and returns the resulting MultiAggregator.
Chains an AVG(path) aggregation using a type-safe ScalarPath.
Chains an AVG(path) aggregation and returns the resulting MultiAggregator.
Chains an AVG(path) aggregation using a type-safe ScalarPath.
Chains an AVG(path) aggregation and returns the resulting MultiAggregator.
Chains an AVG(path) aggregation using a type-safe ScalarPath.
Chains a COUNT(path) aggregation. Pass "*" for COUNT(*).
Chains a COUNT(path) aggregation using a type-safe ScalarPath.
Chains a COUNT(path) aggregation. Pass "*" for COUNT(*).
Chains a COUNT(path) aggregation using a type-safe ScalarPath.
Chains a COUNT(path) aggregation. Pass "*" for COUNT(*).
Chains a COUNT(path) aggregation using a type-safe ScalarPath.
Chains a COUNT(DISTINCT path) aggregation.
Chains a COUNT(DISTINCT path) aggregation using a type-safe ScalarPath.
Chains a COUNT(DISTINCT path) aggregation.
Chains a COUNT(DISTINCT path) aggregation using a type-safe ScalarPath.
Chains a COUNT(DISTINCT path) aggregation.
Chains a COUNT(DISTINCT path) aggregation using a type-safe ScalarPath.
Executes the single-value aggregation and returns the column value cast to type, or null if no rows match the current filter state.
Reified convenience over SingleAggregator.execute — keeps the Kotlin call sites (aggregator.sum(path).execute<BigDecimal>()) concise.
Chains a MAX(path) aggregation and returns the resulting MultiAggregator.
Chains a MAX(path) aggregation using a type-safe ScalarPath.
Chains a MAX(path) aggregation and returns the resulting MultiAggregator.
Chains a MAX(path) aggregation using a type-safe ScalarPath.
Chains a MAX(path) aggregation and returns the resulting MultiAggregator.
Chains a MAX(path) aggregation using a type-safe ScalarPath.
Chains a MIN(path) aggregation and returns the resulting MultiAggregator.
Chains a MIN(path) aggregation using a type-safe ScalarPath.
Chains a MIN(path) aggregation and returns the resulting MultiAggregator.
Chains a MIN(path) aggregation using a type-safe ScalarPath.
Chains a MIN(path) aggregation and returns the resulting MultiAggregator.
Chains a MIN(path) aggregation using a type-safe ScalarPath.
Chains an arbitrary SQL expression into the aggregation list.
Chains an arbitrary SQL expression into the aggregation list.
Chains an arbitrary SQL expression into the aggregation list.
Chains a SUM(path) aggregation and returns the resulting MultiAggregator.
Chains a SUM(path) aggregation using a type-safe ScalarPath.
Chains a SUM(path) aggregation and returns the resulting MultiAggregator.
Chains a SUM(path) aggregation using a type-safe ScalarPath.
Chains a SUM(path) aggregation and returns the resulting MultiAggregator.
Chains a SUM(path) aggregation using a type-safe ScalarPath.