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

Method range

datafusion/datasource/src/mod.rs:249–255  ·  view source on GitHub ↗

Effective range of the file to be scanned.

(&self)

Source from the content-addressed store, hash-verified

247
248 /// Effective range of the file to be scanned.
249 pub fn range(&self) -> (u64, u64) {
250 if let Some(range) = &self.range {
251 (range.start as u64, range.end as u64)
252 } else {
253 (0, self.object_meta.size)
254 }
255 }
256
257 /// Provide a hint to the size of the file metadata. If a hint is provided
258 /// the reader will try and fetch the last `size_hint` bytes of the parquet file optimistically.

Callers 3

test_list_rangeFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_list_rangeFunction · 0.36