MCPcopy Create free account
hub / github.com/apache/arrow / OnSchemaMessageDecoded

Method OnSchemaMessageDecoded

cpp/src/arrow/ipc/reader.cc:1081–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 5

UnpackSchemaMessageFunction · 0.85
OKFunction · 0.50
num_dictsMethod · 0.45
fieldsMethod · 0.45
OnSchemaDecodedMethod · 0.45

Tested by

no test coverage detected