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

Method peek

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

Returns a reference to value mapped by `key`, if it exists. Does not affect the queue order.

(&self, key: &K)

Source from the content-addressed store, hash-verified

90 /// Returns a reference to value mapped by `key`, if it exists.
91 /// Does not affect the queue order.
92 pub fn peek(&self, key: &K) -> Option<&V> {
93 self.data.get(key).map(|(_, value)| value)
94 }
95
96 /// Checks whether there is an entry with key `key` in the queue.
97 /// Does not affect the queue order.

Callers 15

augment_orderingMethod · 0.80
advance_if_matchFunction · 0.80
array_position_scalarFunction · 0.80
array_positions_scalarFunction · 0.80
maxMethod · 0.80
read_batchesMethod · 0.80
merge_sorted_f64Method · 0.80
with_hashesFunction · 0.80
iter_to_arrayMethod · 0.80
fmtMethod · 0.80

Calls 2

mapMethod · 0.45
getMethod · 0.45

Tested by 1

test_popFunction · 0.64