Returns true if the header has been initialized and ready to be sent. This entails setting some fields initialized in RowBatch::Serialize().
| 63 | /// Returns true if the header has been initialized and ready to be sent. |
| 64 | /// This entails setting some fields initialized in RowBatch::Serialize(). |
| 65 | bool IsInitialized() const { |
| 66 | return header_.has_num_rows() && header_.has_uncompressed_size() && |
| 67 | header_.has_compression_type(); |
| 68 | } |
| 69 | |
| 70 | // Prepares the outbound row batch for sending over the network. If |
| 71 | // 'compression_scratch' is not null, then it also tries to compress the tuple_data, |