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

Method getOutput

bolt/exec/LocalPartition.cpp:369–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369RowVectorPtr LocalExchange::getOutput() {
370 RowVectorPtr data;
371 blockingReason_ = queue_->next(&future_, pool(), &data);
372 if (blockingReason_ != BlockingReason::kNotBlocked) {
373 return nullptr;
374 }
375 if (data != nullptr) {
376 auto lockedStats = stats_.wlock();
377 lockedStats->addInputVector(data->estimateFlatSize(), data->size());
378 }
379 return data;
380}
381
382bool LocalExchange::isFinished() {
383 return queue_->isFinished();

Callers

nothing calls this directly

Calls 5

addInputVectorMethod · 0.80
poolFunction · 0.50
nextMethod · 0.45
estimateFlatSizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected