Struct datafusion::execution::options::NdJsonReadOptions   
source · [−]pub struct NdJsonReadOptions<'a> {
    pub schema: Option<SchemaRef>,
    pub schema_infer_max_records: usize,
    pub file_extension: &'a str,
    pub table_partition_cols: Vec<String>,
}Expand description
Line-delimited JSON read options
Fields
schema: Option<SchemaRef>The data source schema.
schema_infer_max_records: usizeMax number of rows to read from JSON files for schema inference if needed. Defaults to DEFAULT_SCHEMA_INFER_MAX_RECORD.
file_extension: &'a strFile extension; only files with this extension are selected for data input. Defaults to DEFAULT_JSON_EXTENSION.
table_partition_cols: Vec<String>Partition Columns
Implementations
sourceimpl<'a> NdJsonReadOptions<'a>
 
impl<'a> NdJsonReadOptions<'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 NdJsonReadOptions<'a>
 
impl<'a> Clone for NdJsonReadOptions<'a>
sourcefn clone(&self) -> NdJsonReadOptions<'a>
 
fn clone(&self) -> NdJsonReadOptions<'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 more
Auto Trait Implementations
impl<'a> RefUnwindSafe for NdJsonReadOptions<'a>
impl<'a> Send for NdJsonReadOptions<'a>
impl<'a> Sync for NdJsonReadOptions<'a>
impl<'a> Unpin for NdJsonReadOptions<'a>
impl<'a> UnwindSafe for NdJsonReadOptions<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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