Trait datafusion::execution::context::DataFilePaths
source · pub trait DataFilePaths {
// Required method
fn to_urls(self) -> Result<Vec<ListingTableUrl>>;
}
Expand description
DataFilePaths adds a method to convert strings and vector of strings to vector of ListingTableUrl
URLs.
This allows methods such SessionContext::read_csv
and [
SessionContext::read_avro`]
to take either a single file or multiple files.
Required Methods§
sourcefn to_urls(self) -> Result<Vec<ListingTableUrl>>
fn to_urls(self) -> Result<Vec<ListingTableUrl>>
Parse to a vector of ListingTableUrl
URLs.