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<P> DataFilePaths for Vec<P>where P: AsRef<str>,

source§

impl DataFilePaths for &String

source§

impl DataFilePaths for &str

source§

impl DataFilePaths for String

Implementors§