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

Method GetAllFieldIndices

cpp/src/arrow/type.cc:1399–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

PromoteTableToSchemaFunction · 0.80
FindAllMethod · 0.80
TEST_FFunction · 0.80
type_test.ccFile · 0.80

Calls 4

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

Tested by 1

TEST_FFunction · 0.64