package granary

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Parameter Make.S

module In : Zset.S

Input Z-set (the rows being aggregated).

module Out : Zset.S

Output Z-set (the (group, value) result rows).

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.

val result : group -> int -> Out.elt

Build the output row from a group and its aggregate value.