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

Method ColumnIndex

cpp/src/parquet/schema.cc:890–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890int SchemaDescriptor::ColumnIndex(const std::string& node_path) const {
891 auto search = leaf_to_idx_.find(node_path);
892 if (search == leaf_to_idx_.end()) {
893 // Not found
894 return -1;
895 }
896 return search->second;
897}
898
899int SchemaDescriptor::ColumnIndex(const Node& node) const {
900 auto search = leaf_to_idx_.equal_range(node.path()->ToDotString());

Callers 3

AssertColumnValuesEqualFunction · 0.45
TEST_FFunction · 0.45

Calls 6

ToDotStringMethod · 0.80
ColumnClass · 0.50
findMethod · 0.45
endMethod · 0.45
pathMethod · 0.45
getMethod · 0.45

Tested by 2

AssertColumnValuesEqualFunction · 0.36
TEST_FFunction · 0.36