| 92 | } |
| 93 | |
| 94 | void SetParseOptions(ParseOptions options) { |
| 95 | parse_options_ = std::move(options); |
| 96 | if (parse_options_.explicit_schema) { |
| 97 | conversion_type_ = struct_(parse_options_.explicit_schema->fields()); |
| 98 | } else { |
| 99 | parse_options_.unexpected_field_behavior = UnexpectedFieldBehavior::InferType; |
| 100 | conversion_type_ = struct_({}); |
| 101 | } |
| 102 | promotion_graph_ = |
| 103 | parse_options_.unexpected_field_behavior == UnexpectedFieldBehavior::InferType |
| 104 | ? GetPromotionGraph() |
| 105 | : nullptr; |
| 106 | } |
| 107 | |
| 108 | void SetSchema(std::shared_ptr<Schema> explicit_schema, |
| 109 | UnexpectedFieldBehavior unexpected_field_behavior) { |
nothing calls this directly
no test coverage detected