Expand description

TopK planning logic.

We provide a plan (TopKPlan) encoding variants of the TopK operator, and provide implementations specific to plan variants.

The TopK variants can be distinguished as follows:

  • A MonotonicTop1Plan maintains a single row per key and is suitable for monotonic inputs.
  • A MonotonicTopKPlan maintains up to K rows per key and is suitable for monotonic inputs.
  • A BasicTopKPlan maintains up to K rows per key and can handle retractions.

Modules

Structs

Enums

  • A plan encapsulating different variants to compute a TopK operation.

Constants