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

Method GetFieldByName

cpp/src/arrow/type.cc:1393–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391}
1392
1393std::shared_ptr<Field> StructType::GetFieldByName(const std::string& name) const {
1394 int i = GetFieldIndex(name);
1395 return i == -1 ? nullptr : children_[i];
1396}
1397
1398int StructType::GetFieldIndex(const std::string& name) const {
1399 return LookupNameIndex(impl_->name_to_index_, name);

Callers 11

TEST_FFunction · 0.45
TESTFunction · 0.45
getFieldByNameMethod · 0.45
getFieldByNameMethod · 0.45
Schema__GetFieldByNameFunction · 0.45

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.36
TESTFunction · 0.36