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

Method remove

datafusion/execution/src/cache/file_statistics_cache.rs:126–135  ·  view source on GitHub ↗
(&mut self, k: &TableScopedPath)

Source from the content-addressed store, hash-verified

124 }
125
126 fn remove(&mut self, k: &TableScopedPath) -> Option<CachedFileMetadata> {
127 if let Some(old_entry) = self.lru_queue.remove(k) {
128 let mut ctx = DFHeapSizeCtx::default();
129 self.memory_used -= k.heap_size(&mut ctx);
130 self.memory_used -= old_entry.heap_size(&mut ctx);
131 Some(old_entry)
132 } else {
133 None
134 }
135 }
136
137 fn contains_key(&self, k: &TableScopedPath) -> bool {
138 self.lru_queue.contains_key(k)

Callers 3

putMethod · 0.45
drop_table_entriesMethod · 0.45

Calls 1

heap_sizeMethod · 0.45