Expand description
TopK execution logic.
Consult TopKPlan documentation for details.
Modulesยง
- monoids
- Monoids for in-place compaction of monotonic streams.
- topk_
agg - Types for in-place intra-ts aggregation of monotonic streams.
Functionsยง
- build_
topk_ ๐negated_ stage - 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.
- map_
topk_ ๐key - Forms the
(key, value)arrangement input the TopK stages consume. - render_
intra_ ๐ts_ thinning - topk_
result_ ๐to_ columnar - Drops the hash-key pairing from a consolidated
(hash_key, row)TopK result.