|
| | WindowIndexTree (ClientContext &context, const vector< BoundOrderByNode > &orders, const vector< column_t > &sort_idx, const idx_t count) |
| | WindowIndexTree (ClientContext &context, const BoundOrderModifier &order_bys, const vector< column_t > &sort_idx, const idx_t count) |
| unique_ptr< LocalSinkState > | GetLocalState (ExecutionContext &context) override |
| pair< idx_t, idx_t > | SelectNth (const SubFrames &frames, idx_t n) const |
| | WindowMergeSortTree (ClientContext &context, const vector< BoundOrderByNode > &orders, const vector< column_t > &order_idx, const idx_t count, bool unique=false) |
| optional_ptr< LocalSinkState > | InitializeLocalSort (ExecutionContext &context) const |
| | Make a local sort for a thread.
|
| virtual void | Finished () |
| | Thread-safe post-sort cleanup.
|
| bool | TryPrepareSortStage (WindowMergeSortTreeLocalState &lstate) |
| | Sort state machine.
|
| void | Build () |
| | Build the MST in parallel from the sorted data.
|
◆ WindowIndexTree() [1/2]
256284 : WindowMergeSortTree(context, orders, sort_idx, count) {
256285}
◆ WindowIndexTree() [2/2]
256289 : WindowIndexTree(context, order_bys.orders, sort_idx, count) {
256290}
◆ GetLocalState()
◆ SelectNth()
| pair< idx_t, idx_t > duckdb::WindowIndexTree::SelectNth |
( |
const SubFrames & | frames, |
|
|
idx_t | n ) const |
Find the Nth index in the set of subframes Returns {nth index, 0} or {nth offset, overflow}
256338 {
256339 if (mst32) {
256340 const auto nth = mst32->SelectNth(frames, n);
256341 if (nth.second) {
256342 return nth;
256343 } else {
256344 return {mst32->NthElement(nth.first), 0};
256345 }
256346 } else {
256347 const auto nth = mst64->SelectNth(frames, n);
256348 if (nth.second) {
256349 return nth;
256350 } else {
256351 return {mst64->NthElement(nth.first), 0};
256352 }
256353 }
256354}
The documentation for this class was generated from the following file: