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

Method effective_size

datafusion/datasource/src/mod.rs:240–246  ·  view source on GitHub ↗

Size of the file to be scanned (taking into account the range, if present).

(&self)

Source from the content-addressed store, hash-verified

238
239 /// Size of the file to be scanned (taking into account the range, if present).
240 pub fn effective_size(&self) -> u64 {
241 if let Some(range) = &self.range {
242 (range.end - range.start) as u64
243 } else {
244 self.object_meta.size
245 }
246 }
247
248 /// Effective range of the file to be scanned.
249 pub fn range(&self) -> (u64, u64) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected