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

Method GetAllFieldsByName

cpp/src/arrow/type.cc:1414–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412}
1413
1414FieldVector StructType::GetAllFieldsByName(const std::string& name) const {
1415 FieldVector result;
1416 auto p = impl_->name_to_index_.equal_range(name);
1417 for (auto it = p.first; it != p.second; ++it) {
1418 result.push_back(children_[it->second]);
1419 }
1420 return result;
1421}
1422
1423Result<std::shared_ptr<StructType>> StructType::AddField(
1424 int i, const std::shared_ptr<Field>& field) const {

Callers 2

TEST_FFunction · 0.80
TESTFunction · 0.80

Calls 1

push_backMethod · 0.80

Tested by 2

TEST_FFunction · 0.64
TESTFunction · 0.64