O(1) lookup of the last value for a series.
(&self, series_id: SeriesId)
| 63 | |
| 64 | /// O(1) lookup of the last value for a series. |
| 65 | pub fn get(&self, series_id: SeriesId) -> Option<&LastValueEntry> { |
| 66 | self.entries.get(&series_id) |
| 67 | } |
| 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)> { |
no outgoing calls