| 1079 | |
| 1080 | private: |
| 1081 | Status OnSchemaMessageDecoded(std::unique_ptr<Message> message) { |
| 1082 | RETURN_NOT_OK(UnpackSchemaMessage(*message, options_, &dictionary_memo_, &schema_, |
| 1083 | &filtered_schema_, &field_inclusion_mask_, |
| 1084 | &stats_.original_endianness, &swap_endian_)); |
| 1085 | |
| 1086 | num_required_initial_dictionaries_ = dictionary_memo_.fields().num_dicts(); |
| 1087 | num_read_initial_dictionaries_ = 0; |
| 1088 | if (num_required_initial_dictionaries_ == 0) { |
| 1089 | state_ = State::RECORD_BATCHES; |
| 1090 | RETURN_NOT_OK(listener_->OnSchemaDecoded(schema_, filtered_schema_)); |
| 1091 | } else { |
| 1092 | state_ = State::INITIAL_DICTIONARIES; |
| 1093 | } |
| 1094 | return Status::OK(); |
| 1095 | } |
| 1096 | |
| 1097 | Status OnInitialDictionaryMessageDecoded(std::unique_ptr<Message> message) { |
| 1098 | if (message->type() != MessageType::DICTIONARY_BATCH) { |
nothing calls this directly
no test coverage detected