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

Method toSerializedPage

bolt/exec/tests/MultiFragmentTest.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 std::unique_ptr<SerializedPage> toSerializedPage(const RowVectorPtr& vector) {
223 auto data = std::make_unique<VectorStreamGroup>(pool());
224 auto size = vector->size();
225 auto range = IndexRange{0, size};
226 data->createStreamTree(asRowType(vector->type()), size);
227 data->append(vector, folly::Range(&range, 1));
228 auto listener = bufferManager_->newListener();
229 IOBufOutputStream stream(*pool(), listener.get(), data->size());
230 data->flush(&stream);
231 return std::make_unique<SerializedPage>(stream.getIOBuf(), nullptr, size);
232 }
233
234 int32_t enqueue(
235 const std::string& taskId,

Callers

nothing calls this directly

Calls 11

asRowTypeFunction · 0.85
createStreamTreeMethod · 0.80
newListenerMethod · 0.80
poolFunction · 0.50
RangeClass · 0.50
sizeMethod · 0.45
typeMethod · 0.45
appendMethod · 0.45
getMethod · 0.45
flushMethod · 0.45
getIOBufMethod · 0.45

Tested by

no test coverage detected