Outputs a debug string containing the contents of the list.
| 118 | |
| 119 | /// Outputs a debug string containing the contents of the list. |
| 120 | std::string DebugString(const RowDescriptor& desc) { |
| 121 | std::stringstream out; |
| 122 | out << "RowBatchList("; |
| 123 | out << "num_rows=" << total_num_rows_ << "; "; |
| 124 | RowBatchList::TupleRowIterator it = Iterator(); |
| 125 | while (!it.AtEnd()) { |
| 126 | out << " " << PrintRow(it.GetRow(), desc); |
| 127 | it.Next(); |
| 128 | } |
| 129 | out << " )"; |
| 130 | return out.str(); |
| 131 | } |
| 132 | |
| 133 | /// Returns the total number of rows in all row batches. |
| 134 | int64_t total_num_rows() { return total_num_rows_; } |