| 1115 | } |
| 1116 | |
| 1117 | std::shared_ptr<Array> StructArray::GetFieldByName(const std::string& name) const { |
| 1118 | int i = struct_type()->GetFieldIndex(name); |
| 1119 | return i == -1 ? nullptr : field(i); |
| 1120 | } |
| 1121 | |
| 1122 | Status StructArray::CanReferenceFieldByName(const std::string& name) const { |
| 1123 | if (GetFieldByName(name) == nullptr) { |