Module mz_compute::render::top_k

source ·
Expand description

TopK execution logic.

Consult TopKPlan documentation for details.

Modules§

  • Monoids for in-place compaction of monotonic streams.
  • Types for in-place intra-ts aggregation of monotonic streams.

Functions§

  • Build a stage of a topk reduction. Maintains the retractions of the output instead of emitted rows. This has the benefit that we have to maintain state proportionally to size of the output instead of the size of the input.