|
| | WindowTokenTree (ClientContext &context, const vector< BoundOrderByNode > &orders, const vector< column_t > &order_idx, const idx_t count, bool unique=false) |
| | WindowTokenTree (ClientContext &context, const BoundOrderModifier &order_bys, const vector< column_t > &order_idx, const idx_t count, bool unique=false) |
| unique_ptr< LocalSinkState > | GetLocalState (ExecutionContext &context) override |
| void | Finished () override |
| | Thread-safe post-sort cleanup.
|
| idx_t | Rank (const idx_t lower, const idx_t upper, const idx_t row_idx) const |
| | Find the rank of the row within the range.
|
| idx_t | PeerEnd (const idx_t lower, const idx_t upper, const idx_t row_idx) const |
| | Find the next peer after the row and within the range.
|
| | 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.
|
| bool | TryPrepareSortStage (WindowMergeSortTreeLocalState &lstate) |
| | Sort state machine.
|
| void | Build () |
| | Build the MST in parallel from the sorted data.
|
◆ WindowTokenTree() [1/2]
256984 : WindowMergeSortTree(context, orders,
order_idx, count, unique) {
256985 }
const vector< column_t > order_idx
The column indices for sorting.
Definition duckdb.cpp:60218
◆ WindowTokenTree() [2/2]
256988 : WindowTokenTree(context, order_bys.orders,
order_idx, count, unique) {
256989 }
◆ GetLocalState()
◆ Finished()
| void duckdb::WindowTokenTree::Finished |
( |
| ) |
|
|
overridevirtual |
Thread-safe post-sort cleanup.
Reimplemented from duckdb::WindowMergeSortTree.
258310 {
258311
258312 if (mst64) {
258313 BuildTokens(*this, mst64->LowestLevel());
258314 } else {
258315 BuildTokens(*this, mst32->LowestLevel());
258316 }
258317
258318
258319
258320
258321
258322
258323 vector<uint8_t> empty;
258325
258327}
virtual void Finished()
Thread-safe post-sort cleanup.
Definition duckdb.cpp:256494
vector< uint8_t > deltas
Peer boundaries.
Definition duckdb.cpp:257003
◆ Rank()
| idx_t duckdb::WindowTokenTree::Rank |
( |
const idx_t | lower, |
|
|
const idx_t | upper, |
|
|
const idx_t | row_idx ) const |
Find the rank of the row within the range.
258339 {
258340 if (mst64) {
258341 return TokenRank(*mst64, lower, upper, row_idx);
258342 } else {
258343 return TokenRank(*mst32, lower, upper, row_idx);
258344 }
258345}
◆ PeerEnd()
| idx_t duckdb::WindowTokenTree::PeerEnd |
( |
const idx_t | lower, |
|
|
const idx_t | upper, |
|
|
const idx_t | row_idx ) const |
Find the next peer after the row and within the range.
258359 {
258360 if (mst64) {
258361 return NextPeer(*mst64, lower, upper, row_idx);
258362 } else {
258363 return NextPeer(*mst32, lower, upper, row_idx);
258364 }
258365}
◆ MeasurePayloadBlocks()
| idx_t duckdb::WindowTokenTree::MeasurePayloadBlocks |
( |
| ) |
|
|
overrideprotectedvirtual |
Find the starts of all the blocks.
Reimplemented from duckdb::WindowMergeSortTree.
258269 {
258271
258273
258274 return count;
258275}
virtual idx_t MeasurePayloadBlocks()
Definition duckdb.cpp:256479
The documentation for this class was generated from the following file: