MCPcopy Create free account
hub / github.com/apache/impala / FindPointeeOrNull

Function FindPointeeOrNull

be/src/gutil/map-util.h:264–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262// or null if it doesn't.
263template <class Collection>
264typename Collection::mapped_type::element_type*
265FindPointeeOrNull(const Collection& collection, // NOLINT,
266 const typename Collection::key_type& key) {
267 auto it = collection.find(key);
268 if (it == collection.end()) {
269 return nullptr;
270 }
271 return it->second.get();
272}
273
274// Finds the value associated with the given key and copies it to *value (if not
275// NULL). Returns false if the key was not found, true otherwise.

Callers 8

VerifyTokenSignatureMethod · 0.85
LookupHSKeyMethod · 0.85
LookupRSAPublicKeyMethod · 0.85
LookupECPublicKeyMethod · 0.85
JWTHelperForTokenMethod · 0.85
TESTFunction · 0.85

Calls 3

getMethod · 0.65
findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68