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

Method PrepareBatchForSend

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

Source from the content-addressed store, hash-verified

1333}
1334
1335Status KrpcDataStreamSender::PrepareBatchForSend(
1336 OutboundRowBatch* batch, bool compress) {
1337 DCHECK(partition_type_ == TPartitionType::HASH_PARTITIONED
1338 || partition_type_ == TPartitionType::KUDU);
1339 SCOPED_TIMER(serialize_batch_timer_);
1340 RETURN_IF_ERROR(batch->PrepareForSend(row_desc_->tuple_descriptors().size(),
1341 compress ? compression_scratch_.get() : nullptr, true));
1342 int64_t uncompressed_bytes = RowBatch::GetDeserializedSize(*batch);
1343 COUNTER_ADD(uncompressed_bytes_counter_, uncompressed_bytes);
1344 return Status::OK();
1345}
1346
1347
1348int64_t KrpcDataStreamSender::GetNumDataBytesSent() const {

Callers 1

SendCurrentBatchMethod · 0.80

Calls 4

OKFunction · 0.85
PrepareForSendMethod · 0.80
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected