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

Method GetAllFieldIndices

cpp/src/arrow/type.cc:1402–1412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1400}
1401
1402std::vector<int> StructType::GetAllFieldIndices(const std::string& name) const {
1403 std::vector<int> result;
1404 auto p = impl_->name_to_index_.equal_range(name);
1405 for (auto it = p.first; it != p.second; ++it) {
1406 result.push_back(it->second);
1407 }
1408 if (result.size() > 1) {
1409 std::sort(result.begin(), result.end());
1410 }
1411 return result;
1412}
1413
1414FieldVector StructType::GetAllFieldsByName(const std::string& name) const {
1415 FieldVector result;

Callers 4

PromoteTableToSchemaFunction · 0.80
FindAllMethod · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80

Calls 4

push_backMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TESTFunction · 0.64