datafusion::execution::context

Trait 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§

Source

fn to_urls(self) -> Result<Vec<ListingTableUrl>>

Parse to a vector of ListingTableUrl URLs.

Implementations on Foreign Types§

Source§

impl DataFilePaths for &str

Source§

impl DataFilePaths for &String

Source§

impl DataFilePaths for String

Source§

impl<P> DataFilePaths for Vec<P>
where P: AsRef<str>,

Implementors§