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

Method drop_table_entries

datafusion/execution/src/cache/list_files_cache.rs:382–397  ·  view source on GitHub ↗
(
        &self,
        table_ref: &Option<TableReference>,
    )

Source from the content-addressed store, hash-verified

380 }
381
382 fn drop_table_entries(
383 &self,
384 table_ref: &Option<TableReference>,
385 ) -> datafusion_common::Result<()> {
386 let mut state = self.state.lock().unwrap();
387 let mut table_paths = vec![];
388 for (path, _) in state.lru_queue.list_entries() {
389 if path.table == *table_ref {
390 table_paths.push(path.clone());
391 }
392 }
393 for path in table_paths {
394 state.remove(&path);
395 }
396 Ok(())
397 }
398}
399
400#[cfg(test)]

Callers 2

invalidate_cachesMethod · 0.45
test_drop_table_entriesFunction · 0.45

Calls 4

list_entriesMethod · 0.45
pushMethod · 0.45
cloneMethod · 0.45
removeMethod · 0.45

Tested by 1

test_drop_table_entriesFunction · 0.36