Module topk

Module topk 

Source
Expand description

TopK: Combination of Sort / LIMIT

StructsΒ§

RecordBatchEntry πŸ”’
RecordBatchStore πŸ”’
This structure tracks [RecordBatch] by an id so that:
TopK
Global TopK
TopKDynamicFilters
TopKHeap πŸ”’
This structure keeps at most the smallest k items, using the [arrow::row] format for sort keys. While it is called β€œtopK” for values like 1, 2, 3, 4, 5 the β€œtop 3” really means the smallest 3 , 1, 2, 3, not the largest 3 3, 4, 5.
TopKMetrics πŸ”’
TopKRow πŸ”’
Represents one of the top K rows held in this heap. Orders according to memcmp of row (e.g. the arrow Row format, but could also be primitive values)

ConstantsΒ§

ESTIMATED_BYTES_PER_ROW πŸ”’

FunctionsΒ§

build_sort_fields πŸ”’