Returns the serialized tuple data's buffer as a kudu::Slice. The tuple data is sent as KRPC sidecar.
| 55 | /// Returns the serialized tuple data's buffer as a kudu::Slice. |
| 56 | /// The tuple data is sent as KRPC sidecar. |
| 57 | kudu::Slice TupleDataAsSlice() const { |
| 58 | return kudu::Slice( |
| 59 | const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(tuple_data_.data())), |
| 60 | tuple_data_.length()); |
| 61 | } |
| 62 | |
| 63 | /// Returns true if the header has been initialized and ready to be sent. |
| 64 | /// This entails setting some fields initialized in RowBatch::Serialize(). |