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

Method file_statistics

datafusion/datasource/src/file_groups.rs:440–446  ·  view source on GitHub ↗

Get the specific file statistics for the given index If the index is None, return the `FileGroup` statistics

(&self, index: Option<usize>)

Source from the content-addressed store, hash-verified

438 /// Get the specific file statistics for the given index
439 /// If the index is None, return the `FileGroup` statistics
440 pub fn file_statistics(&self, index: Option<usize>) -> Option<&Statistics> {
441 if let Some(index) = index {
442 self.files.get(index).and_then(|f| f.statistics.as_deref())
443 } else {
444 self.statistics.as_deref()
445 }
446 }
447
448 /// Get the mutable reference to the statistics for this group
449 pub fn statistics_mut(&mut self) -> Option<&mut Statistics> {

Calls 1

getMethod · 0.45