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

Method GetFieldId

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

Source from the content-addressed store, hash-verified

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)));
76 if (it == field_path_to_id.end()) {
77 return Status::KeyError("Dictionary field not found");
78 }
79 return it->second;
80 }
81
82 int num_fields() const { return static_cast<int>(field_path_to_id.size()); }
83

Callers

nothing calls this directly

Calls 4

FieldPathFunction · 0.85
KeyErrorFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected