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

Function saveSelectivityVector

bolt/vector/VectorSaver.cpp:772–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770template std::vector<int> restoreStdVectorFromFile<int>(const char* filePath);
771
772void saveSelectivityVector(const SelectivityVector& rows, std::ostream& out) {
773 auto range = rows.asRange();
774
775 write<int32_t>(rows.size(), out);
776 out.write(
777 reinterpret_cast<const char*>(range.bits()), bits::nbytes(rows.size()));
778}
779
780SelectivityVector restoreSelectivityVector(std::istream& in) {
781 auto size = read<int32_t>(in);

Callers 2

TEST_FFunction · 0.85

Calls 5

nbytesFunction · 0.85
asRangeMethod · 0.45
sizeMethod · 0.45
writeMethod · 0.45
bitsMethod · 0.45

Tested by 2

TEST_FFunction · 0.68