MCPcopy Create free account
hub / github.com/apache/impala / SendCurrentBatch

Method SendCurrentBatch

be/src/runtime/krpc-data-stream-sender.cc:637–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637Status KrpcDataStreamSender::PartitionRowCollector::SendCurrentBatch() {
638 if (collector_batch_->IsEmpty()) {
639 DCHECK_EQ(num_rows_, 0);
640 return Status::OK();
641 }
642 num_rows_ = 0;
643 RETURN_IF_ERROR(channel_->GetParent()->PrepareBatchForSend(
644 collector_batch_.get(), !channel_->IsLocal()));
645 RETURN_IF_ERROR(channel_->TransmitData(&collector_batch_, true /*swap_batch*/));
646 collector_batch_->Reset();
647 return Status::OK();
648}
649
650void KrpcDataStreamSender::Channel::EndDataStreamCompleteCb() {
651 std::unique_lock<SpinLock> l(lock_);

Callers 1

FlushFinalMethod · 0.80

Calls 8

OKFunction · 0.85
PrepareBatchForSendMethod · 0.80
GetParentMethod · 0.80
IsLocalMethod · 0.80
getMethod · 0.65
IsEmptyMethod · 0.45
TransmitDataMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected