Struct orc_rust::datafusion::OrcReadOptions
source · pub struct OrcReadOptions<'a> {
pub file_extension: &'a str,
}
Expand description
Configuration options for reading ORC files.
Fields§
§file_extension: &'a str
Trait Implementations§
source§impl<'a> Clone for OrcReadOptions<'a>
impl<'a> Clone for OrcReadOptions<'a>
source§fn clone(&self) -> OrcReadOptions<'a>
fn clone(&self) -> OrcReadOptions<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Default for OrcReadOptions<'a>
impl<'a> Default for OrcReadOptions<'a>
source§impl ReadOptions<'_> for OrcReadOptions<'_>
impl ReadOptions<'_> for OrcReadOptions<'_>
source§fn to_listing_options(
&self,
_config: &SessionConfig,
_table_options: TableOptions,
) -> ListingOptions
fn to_listing_options( &self, _config: &SessionConfig, _table_options: TableOptions, ) -> ListingOptions
Helper to convert these user facing options to
ListingTable
optionssource§fn get_resolved_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 SessionConfig,
state: SessionState,
table_path: ListingTableUrl,
) -> Pin<Box<dyn Future<Output = Result<SchemaRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_resolved_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 SessionConfig,
state: SessionState,
table_path: ListingTableUrl,
) -> Pin<Box<dyn Future<Output = Result<SchemaRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Infer and resolve the schema from the files/sources provided.
source§fn _get_resolved_schema<'life0, 'async_trait>(
&'a self,
config: &'life0 SessionConfig,
state: SessionState,
table_path: ListingTableUrl,
schema: Option<&'a Schema>,
) -> Pin<Box<dyn Future<Output = Result<Arc<Schema>, DataFusionError>> + Send + 'async_trait>>where
'a: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn _get_resolved_schema<'life0, 'async_trait>(
&'a self,
config: &'life0 SessionConfig,
state: SessionState,
table_path: ListingTableUrl,
schema: Option<&'a Schema>,
) -> Pin<Box<dyn Future<Output = Result<Arc<Schema>, DataFusionError>> + Send + 'async_trait>>where
'a: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
helper function to reduce repetitive code. Infers the schema from sources if not provided. Infinite data sources not supported through this function.
Auto Trait Implementations§
impl<'a> Freeze for OrcReadOptions<'a>
impl<'a> RefUnwindSafe for OrcReadOptions<'a>
impl<'a> Send for OrcReadOptions<'a>
impl<'a> Sync for OrcReadOptions<'a>
impl<'a> Unpin for OrcReadOptions<'a>
impl<'a> UnwindSafe for OrcReadOptions<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)