| 242 | |
| 243 | protected: |
| 244 | std::string printNonNull(vector_size_t index, const std::string& indent) |
| 245 | const override { |
| 246 | std::stringstream out; |
| 247 | |
| 248 | auto rowIndex = decoded_.index(index); |
| 249 | |
| 250 | const auto& rowType = decoded_.base()->type()->asRow(); |
| 251 | |
| 252 | for (auto i = 0; i < rowType.size(); ++i) { |
| 253 | out << indent << "Field " << rowType.nameOf(i) << ": " |
| 254 | << children_[i]->summarize(rowIndex) << std::endl; |
| 255 | out << children_[i]->print(rowIndex, addIndent(indent)); |
| 256 | } |
| 257 | |
| 258 | return out.str(); |
| 259 | } |
| 260 | |
| 261 | std::string summarizeNonNull(vector_size_t /* index */) const override { |
| 262 | return decoded_.base()->type()->toString(); |