class Aggregation
extends TransformBase
import { Aggregation } from "https://deno.land/x/pg_mem@3.0.3/transforms/aggregation.ts";
Constructors
new
Aggregation(on: _ISelection, _groupedBy: Expr[])Properties
private
groupByMapping: Map<string, IValue>How to get the grouped values on "this.enumerate()" raw items output
private
groupingValuesOnbase: IValue[]How to get grouping values on the base table raw items (not on "this.enumerate()" raw items)
Group-by values
- key: column in source hash
- value: column in this, evaluated against temporary entity.
columns: readonly IValue[]
Methods
private
_enumerateAggregationKeys(t: _Transaction): Iterable<AggregItem>private
_getAggregation(name: string, call: ExprCall): AggregationComputerprivate
computeDirect(t: _Transaction): AggregItem | nullprivate
iterateFromIndex(t: _Transaction): AggregItem[] | nullprivate
seqScan(t: _Transaction): Iterable<AggregItem>checkIfIsKey(got: IValue): IValue
entropy(t: _Transaction): number
enumerate(t: _Transaction): Iterable<Row>
getAggregation(name: string, call: ExprCall): IValue
hasItem(value: Row, t: _Transaction): boolean
isAggregation(): this is _IAggregation