| 367 | } |
| 368 | |
| 369 | RowVectorPtr 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 | |
| 382 | bool LocalExchange::isFinished() { |
| 383 | return queue_->isFinished(); |
nothing calls this directly
no test coverage detected