| 118 | std::unordered_map<const SchemaField*, const SchemaField*> child_to_parent; |
| 119 | |
| 120 | ::arrow::Status GetColumnField(int column_index, const SchemaField** out) const { |
| 121 | auto it = column_index_to_field.find(column_index); |
| 122 | if (it == column_index_to_field.end()) { |
| 123 | return ::arrow::Status::KeyError("Column index ", column_index, |
| 124 | " not found in schema manifest, may be malformed"); |
| 125 | } |
| 126 | *out = it->second; |
| 127 | return ::arrow::Status::OK(); |
| 128 | } |
| 129 | |
| 130 | const SchemaField* GetParent(const SchemaField* field) const { |
| 131 | // Returns nullptr also if not found |