| 1069 | } |
| 1070 | |
| 1071 | void AddField(const DataType& type, const FieldPath& path, SortOrder order, |
| 1072 | NullPlacement null_placement) { |
| 1073 | if (type.id() == Type::STRUCT) { |
| 1074 | tmp_indices_ = path.indices(); |
| 1075 | AddLeafFields(type.fields(), order, null_placement); |
| 1076 | } else { |
| 1077 | sort_fields_.emplace_back(path, order, null_placement, &type); |
| 1078 | } |
| 1079 | } |
| 1080 | |
| 1081 | std::vector<SortField> sort_fields_; |
| 1082 | std::unordered_set<FieldPath, FieldPath::Hash> seen_; |
nothing calls this directly
no test coverage detected