Trait lance_table::format::SelfDescribingFileReader
source · pub trait SelfDescribingFileReader {
// Required method
fn try_new_self_described<'life0, 'life1, 'life2, 'async_trait>(
object_store: &'life0 ObjectStore,
path: &'life1 Path,
cache: Option<&'life2 FileMetadataCache>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
sourcefn try_new_self_described<'life0, 'life1, 'life2, 'async_trait>(
object_store: &'life0 ObjectStore,
path: &'life1 Path,
cache: Option<&'life2 FileMetadataCache>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn try_new_self_described<'life0, 'life1, 'life2, 'async_trait>(
object_store: &'life0 ObjectStore,
path: &'life1 Path,
cache: Option<&'life2 FileMetadataCache>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Open a file reader without any cached schema
In this case the schema will first need to be loaded from the file itself.
When loading files from a dataset it is preferable to use the fragment reader to avoid this overhead.