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

Method SerializeAndSendBatch

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

Source from the content-addressed store, hash-verified

617}
618
619Status KrpcDataStreamSender::Channel::SerializeAndSendBatch(RowBatch* batch) {
620 unique_ptr<OutboundRowBatch>* serialization_batch = GetSerializationBatch();
621 RETURN_IF_ERROR(parent_->SerializeBatch(batch, serialization_batch->get(), !is_local_));
622 // Swap serialization_batch with outbound_batch_ once the old RPC is finished.
623 RETURN_IF_ERROR(TransmitData(serialization_batch, true /*swap_batch*/));
624 return Status::OK();
625}
626
627unique_ptr<OutboundRowBatch>* KrpcDataStreamSender::Channel::GetSerializationBatch() {
628 unique_ptr<OutboundRowBatch>* serialization_batch = &parent_->serialization_batch_;

Callers 1

SendMethod · 0.80

Calls 3

OKFunction · 0.85
SerializeBatchMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected