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

Method AddField

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

Source from the content-addressed store, hash-verified

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);
68 if (!pair.second) {
69 return Status::KeyError("Field already mapped to id");
70 }
71 return Status::OK();
72 }
73
74 Result<int64_t> GetFieldId(std::vector<int> field_path) const {
75 const auto it = field_path_to_id.find(FieldPath(std::move(field_path)));

Callers

nothing calls this directly

Calls 3

FieldPathFunction · 0.85
KeyErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected