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

Function GetIndex

cpp/src/arrow/engine/substrait/extension_set.cc:341–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340template <typename KeyToIndex, typename Key>
341const int* GetIndex(const KeyToIndex& key_to_index, const Key& key) {
342 auto it = key_to_index.find(key);
343 if (it == key_to_index.end()) return nullptr;
344 return &it->second;
345}
346
347namespace {
348

Callers 1

GetTypeMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected