diff --git a/src/common/data_chunk/sel_vector.cpp b/src/common/data_chunk/sel_vector.cpp new file mode 100644 index 00000000000..c3b3e82c5ac --- /dev/null +++ b/src/common/data_chunk/sel_vector.cpp @@ -0,0 +1,15 @@ +#include "common/data_chunk/sel_vector.h" + +namespace kuzu { +namespace common { + +void SelectionVector::setCapacityAndToValuePosBuffer(sel_t capacity) { + selectedPositionsBuffer = std::make_unique(capacity); + resetSelectorToValuePosBuffer(); + for (auto i = 0u; i < capacity; i++) { + selectedPositionsBuffer[i] = i; + } +} + +} // namespace common +} // namespace kuzu