MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / all

Method all

nodedb/src/engine/timeseries/last_value_cache.rs:70–72  ·  view source on GitHub ↗

Return all cached last values. O(N) where N is distinct series count.

(&self)

Source from the content-addressed store, hash-verified

68
69 /// Return all cached last values. O(N) where N is distinct series count.
70 pub fn all(&self) -> impl Iterator<Item = (SeriesId, &LastValueEntry)> {
71 self.entries.iter().map(|(&id, entry)| (id, entry))
72 }
73
74 /// Remove a series from the cache (e.g., on TTL expiry or drop).
75 pub fn remove(&mut self, series_id: SeriesId) -> bool {

Callers 5

is_coveringMethod · 0.45
is_emptyMethod · 0.45
left_join_rowsFunction · 0.45
all_returns_all_entriesFunction · 0.45
filter_blocksMethod · 0.45

Calls 1

iterMethod · 0.45

Tested by 1

all_returns_all_entriesFunction · 0.36