MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / finalize

Method finalize

src/processor/operator/order_by/sort_state.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void SortLocalState::finalize(lbug::processor::SortSharedState& sharedState) {
80 for (auto& keyBlock : orderByKeyEncoder->getKeyBlocks()) {
81 if (keyBlock->numTuples > 0) {
82 radixSorter->sortSingleKeyBlock(*keyBlock);
83 sharedState.appendLocalSortedKeyBlock(
84 make_shared<MergedKeyBlocks>(orderByKeyEncoder->getNumBytesPerTuple(), keyBlock));
85 }
86 }
87 orderByKeyEncoder->clear();
88}
89
90PayloadScanner::PayloadScanner(MergedKeyBlocks* keyBlockToScan,
91 std::vector<FactorizedTable*> payloadTables, uint64_t skipNumber, uint64_t limitNumber)

Callers

nothing calls this directly

Calls 4

sortSingleKeyBlockMethod · 0.80
getNumBytesPerTupleMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected