Struct datafusion::execution::options::AvroReadOptions
source · pub struct AvroReadOptions<'a> {
pub schema: Option<SchemaRef>,
pub file_extension: &'a str,
pub table_partition_cols: Vec<String>,
}
Expand description
Options that control the reading of AVRO files.
Note this structure is supplied when a datasource is created and
can not not vary from statement to statement. For settings that
can vary statement to statement see
ConfigOptions
.
Fields
schema: Option<SchemaRef>
The data source schema.
file_extension: &'a str
File extension; only files with this extension are selected for data input.
Defaults to FileType::AVRO.get_ext().as_str()
.
table_partition_cols: Vec<String>
Partition Columns
Implementations
sourceimpl<'a> AvroReadOptions<'a>
impl<'a> AvroReadOptions<'a>
sourcepub fn table_partition_cols(self, table_partition_cols: Vec<String>) -> Self
pub fn table_partition_cols(self, table_partition_cols: Vec<String>) -> Self
Specify table_partition_cols for partition pruning
sourcepub fn to_listing_options(&self, target_partitions: usize) -> ListingOptions
pub fn to_listing_options(&self, target_partitions: usize) -> ListingOptions
Helper to convert these user facing options to ListingTable
options
Trait Implementations
sourceimpl<'a> Clone for AvroReadOptions<'a>
impl<'a> Clone for AvroReadOptions<'a>
sourcefn clone(&self) -> AvroReadOptions<'a>
fn clone(&self) -> AvroReadOptions<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> RefUnwindSafe for AvroReadOptions<'a>
impl<'a> Send for AvroReadOptions<'a>
impl<'a> Sync for AvroReadOptions<'a>
impl<'a> Unpin for AvroReadOptions<'a>
impl<'a> UnwindSafe for AvroReadOptions<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more