| 316 | std::shared_ptr<Schema> schema() const override { return schema_; } |
| 317 | |
| 318 | Status GetDictionary(int field_index, std::shared_ptr<ArrayData>* out) { |
| 319 | const fbs::Column* col_meta = metadata_->columns()->Get(field_index); |
| 320 | auto dict_meta = col_meta->metadata_as<fbs::CategoryMetadata>(); |
| 321 | const auto& dict_type = |
| 322 | checked_cast<const DictionaryType&>(*schema_->field(field_index)->type()); |
| 323 | |
| 324 | return LoadValues(dict_type.value_type(), dict_meta->levels(), |
| 325 | fbs::TypeMetadata::TypeMetadata_NONE, nullptr, out); |
| 326 | } |
| 327 | |
| 328 | Status GetColumn(int field_index, std::shared_ptr<ChunkedArray>* out) { |
| 329 | const fbs::Column* col_meta = metadata_->columns()->Get(field_index); |
nothing calls this directly
no test coverage detected