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

Method AddSchemaFields

cpp/src/arrow/ipc/dictionary.cc:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 Status AddSchemaFields(const Schema& schema) {
59 if (!field_path_to_id.empty()) {
60 return Status::Invalid("Non-empty DictionaryFieldMapper");
61 }
62 ImportSchema(schema);
63 return Status::OK();
64 }
65
66 Status AddField(int64_t id, std::vector<int> field_path) {
67 const auto pair = field_path_to_id.emplace(FieldPath(std::move(field_path)), id);

Callers

nothing calls this directly

Calls 4

InvalidFunction · 0.50
ImportSchemaFunction · 0.50
OKFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected