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

Method getNumScanMorsels

src/storage/table/arrow_node_table.cpp:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159size_t ArrowNodeTable::getNumScanMorsels(
160 [[maybe_unused]] const transaction::Transaction* transaction) const {
161 size_t numMorsels = 0;
162 for (const auto& array : arrays) {
163 auto batchLength = getArrowBatchLength(array);
164 numMorsels += (batchLength + scanMorselSize - 1) / scanMorselSize;
165 }
166 return numMorsels;
167}
168
169std::vector<int64_t> ArrowNodeTable::getOutputToArrowColumnIdx(
170 const std::vector<common::column_id_t>& columnIDs) const {

Callers 1

initializeMethod · 0.80

Calls 1

getArrowBatchLengthFunction · 0.70

Tested by

no test coverage detected