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

Function setSequentialValue

bolt/exec/tests/SpillerTest.cpp:104–112  ·  view source on GitHub ↗

Set sequential value in a given child vector. 'value' is the starting value.

Source from the content-addressed store, hash-verified

102
103// Set sequential value in a given child vector. 'value' is the starting value.
104void setSequentialValue(
105 RowVectorPtr rowVector,
106 column_index_t childIndex,
107 int64_t value = 0) {
108 auto valueVector = rowVector->childAt(childIndex)->as<FlatVector<int64_t>>();
109 for (auto i = 0; i < valueVector->size(); ++i) {
110 valueVector->set(i, value + i);
111 }
112}
113
114void resizeVector(RowVector& vector, vector_size_t size) {
115 vector.prepareForReuse();

Callers 1

testSortedSpillMethod · 0.70

Calls 3

childAtMethod · 0.80
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected