| 210 | Status WriteValidityBitmap(const Array& array); |
| 211 | |
| 212 | Status PrintChildren(const std::vector<const Array*>& fields, int64_t offset, |
| 213 | int64_t length) { |
| 214 | for (size_t i = 0; i < fields.size(); ++i) { |
| 215 | Write("\n"); // Always want newline before child array description |
| 216 | Indent(); |
| 217 | std::stringstream ss; |
| 218 | ss << "-- child " << i << " type: " << fields[i]->type()->ToString() << "\n"; |
| 219 | Write(ss.str()); |
| 220 | |
| 221 | // Indent(); |
| 222 | const Array* field = fields[i]; |
| 223 | if (offset != 0) { |
| 224 | RETURN_NOT_OK( |
| 225 | PrettyPrint(*field->Slice(offset, length), ChildOptions(true), sink_)); |
| 226 | } else { |
| 227 | RETURN_NOT_OK(PrettyPrint(*field, ChildOptions(true), sink_)); |
| 228 | } |
| 229 | } |
| 230 | return Status::OK(); |
| 231 | } |
| 232 | |
| 233 | // |
| 234 | // WriteDataValues(): generic function to write values from an array |