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

Function initializeRowNumberMapping

bolt/exec/OperatorUtils.cpp:515–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513folly::Range<vector_size_t*> initializeRowNumberMapping(
514 BufferPtr& mapping,
515 vector_size_t size,
516 memory::MemoryPool* pool) {
517 if (!mapping || !mapping->unique() ||
518 mapping->size() < sizeof(vector_size_t) * size) {
519 mapping = allocateIndices(size, pool);
520 }
521 return folly::Range(mapping->asMutable<vector_size_t>(), size);
522}
523
524void projectChildren(
525 std::vector<VectorPtr>& projectedChildren,
526 const RowVectorPtr& src,
527 const std::vector<IdentityProjection>& projections,

Callers 5

fillOutputMethod · 0.85
getOutputMethod · 0.85
TEST_FFunction · 0.85

Calls 4

allocateIndicesFunction · 0.85
uniqueMethod · 0.80
RangeClass · 0.50
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68