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

Method FieldIndex

cpp/src/parquet/schema.cc:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391int GroupNode::FieldIndex(const std::string& name) const {
392 auto search = field_name_to_idx_.find(name);
393 if (search == field_name_to_idx_.end()) {
394 // Not found
395 return -1;
396 }
397 return search->second;
398}
399
400int GroupNode::FieldIndex(const Node& node) const {
401 auto search = field_name_to_idx_.equal_range(node.name());

Callers 2

TEST_FFunction · 0.80
GetFieldIndicesFunction · 0.80

Calls 5

fieldFunction · 0.50
findMethod · 0.45
endMethod · 0.45
nameMethod · 0.45
getMethod · 0.45

Tested by 1

TEST_FFunction · 0.64