MCPcopy Create free account
hub / github.com/apache/datafusion / get

Method get

datafusion/execution/src/cache/lru_queue.rs:83–88  ·  view source on GitHub ↗

Returns a reference to value mapped by `key`, if it exists. If the entry exists, it becomes the most recently used.

(&mut self, key: &K)

Source from the content-addressed store, hash-verified

81 /// Returns a reference to value mapped by `key`, if it exists.
82 /// If the entry exists, it becomes the most recently used.
83 pub fn get(&mut self, key: &K) -> Option<&V> {
84 if let Some(value) = self.remove(key) {
85 self.put(key.clone(), value);
86 }
87 self.data.get(key).map(|(_, value)| value)
88 }
89
90 /// Returns a reference to value mapped by `key`, if it exists.
91 /// Does not affect the queue order.

Callers 8

get_storeMethod · 0.45
get_factoryMethod · 0.45
udfMethod · 0.45
higher_order_functionMethod · 0.45
udafMethod · 0.45
udwfMethod · 0.45
peekMethod · 0.45
test_popFunction · 0.45

Calls 4

removeMethod · 0.45
putMethod · 0.45
cloneMethod · 0.45
mapMethod · 0.45

Tested by 1

test_popFunction · 0.36