Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
acquamarin committed Sep 3, 2023
1 parent e11329c commit 2adca7e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/common/data_chunk/sel_vector.cpp
Original file line number Diff line number Diff line change
@@ -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<sel_t[]>(capacity);
resetSelectorToValuePosBuffer();
for (auto i = 0u; i < capacity; i++) {
selectedPositionsBuffer[i] = i;
}
}

} // namespace common
} // namespace kuzu

0 comments on commit 2adca7e

Please sign in to comment.