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

Method loadInternal

bolt/vector/tests/utils/VectorMaker.h:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 : loader_(loader) {}
91
92 void loadInternal(
93 RowSet rows,
94 ValueHook* hook,
95 vector_size_t resultSize,
96 VectorPtr* result) override {
97 BOLT_CHECK(!hook, "SimpleVectorLoader doesn't support ValueHook");
98 auto& resultRef = *result;
99 resultRef = loader_(rows);
100 if (resultRef->size() < resultSize) {
101 resultRef->resize(resultSize);
102 }
103 }
104
105 private:
106 std::function<VectorPtr(RowSet)> loader_;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected