| 799 | }; |
| 800 | |
| 801 | struct DenseImpl : UnionImpl { |
| 802 | using UnionImpl::UnionImpl; |
| 803 | |
| 804 | void operator()(const Array& array, int64_t index, std::ostream* os) { |
| 805 | const auto& union_array = checked_cast<const DenseUnionArray&>(array); |
| 806 | DoFormat(union_array, index, union_array.raw_value_offsets()[index], os); |
| 807 | } |
| 808 | }; |
| 809 | |
| 810 | std::vector<Formatter> field_formatters(t.max_type_code() + 1); |
| 811 | for (int i = 0; i < t.num_fields(); ++i) { |