granary.ivm
Make.S
granary
granary.block
granary.catalog
granary.columnar
granary.encoding
granary.mirage_block
granary.parallel
granary.recovery
granary.replication
granary.sample
granary.sql
granary.storage
granary.store
granary.unix
module In : Zset.S
Input Z-set (the rows being aggregated).
module Out : Zset.S
Output Z-set (the (group, value) result rows).
(group, value)
type group
The grouping-key type.
val compare_group : group -> group -> int
Total order on groups.
val group_of : In.elt -> group
The group an input element belongs to.
val measure : In.elt -> int
The element's contribution to its group's aggregate (1 for COUNT, the summed column for SUM). The running value is Σ measure * weight.
1
COUNT
SUM
Σ measure * weight
val result : group -> int -> Out.elt
Build the output row from a group and its aggregate value.