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

Function GetColumnField

cpp/src/parquet/arrow/schema.h:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 std::unordered_map<const SchemaField*, const SchemaField*> child_to_parent;
119
120 ::arrow::Status GetColumnField(int column_index, const SchemaField** out) const {
121 auto it = column_index_to_field.find(column_index);
122 if (it == column_index_to_field.end()) {
123 return ::arrow::Status::KeyError("Column index ", column_index,
124 " not found in schema manifest, may be malformed");
125 }
126 *out = it->second;
127 return ::arrow::Status::OK();
128 }
129
130 const SchemaField* GetParent(const SchemaField* field) const {
131 // Returns nullptr also if not found

Callers

nothing calls this directly

Calls 4

KeyErrorFunction · 0.85
OKFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected