| 1333 | } |
| 1334 | |
| 1335 | Status 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 | |
| 1348 | int64_t KrpcDataStreamSender::GetNumDataBytesSent() const { |
no test coverage detected