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

Method with_file_opener

datafusion/datasource/src/file_stream/builder.rs:62–65  ·  view source on GitHub ↗

Configure the [`FileOpener`] used to open files. This will overwrite any setting from [`Self::with_morselizer`]

(mut self, file_opener: Arc<dyn FileOpener>)

Source from the content-addressed store, hash-verified

60 ///
61 /// This will overwrite any setting from [`Self::with_morselizer`]
62 pub fn with_file_opener(mut self, file_opener: Arc<dyn FileOpener>) -> Self {
63 self.morselizer = Some(Box::new(FileOpenerMorselizer::new(file_opener)));
64 self
65 }
66
67 /// Configure the [`Morselizer`] used to open files.
68 ///

Calls 1

newFunction · 0.85