MCPcopy Create free account
hub / github.com/bytedance/bolt / loadColumns

Function loadColumns

bolt/exec/OperatorUtils.cpp:374–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372void loadColumns(const RowVectorPtr& input, core::ExecCtx& execCtx) {
373 LocalDecodedVector decodedHolder(execCtx);
374 LocalSelectivityVector baseRowsHolder(&execCtx);
375 LocalSelectivityVector rowsHolder(&execCtx);
376 SelectivityVector* rows = nullptr;
377 for (auto& child : input->children()) {
378 if (isLazyNotLoaded(*child)) {
379 if (!rows) {
380 rows = rowsHolder.get(input->size());
381 rows->setAll();
382 }
383 LazyVector::ensureLoadedRows(
384 child,
385 *rows,
386 *decodedHolder.get(),
387 *baseRowsHolder.get(input->size()));
388 }
389 }
390}
391
392void gatherCopy(
393 BaseVector* target,
394 vector_size_t targetIndex,
395 vector_size_t count,

Callers 5

addInputMethod · 0.85
findEndOfMatchMethod · 0.85
doGetOutputMethod · 0.85

Calls 5

isLazyNotLoadedFunction · 0.85
setAllMethod · 0.80
childrenMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected