Struct datafusion::physical_plan::file_format::FileScanConfig
source · [−]pub struct FileScanConfig {
pub object_store: Arc<dyn ObjectStore>,
pub file_schema: SchemaRef,
pub file_groups: Vec<Vec<PartitionedFile>>,
pub statistics: Statistics,
pub projection: Option<Vec<usize>>,
pub limit: Option<usize>,
pub table_partition_cols: Vec<String>,
}
Expand description
The base configurations to provide when creating a physical plan for any given file format.
Fields
object_store: Arc<dyn ObjectStore>
Store from which the files
should be fetched
file_schema: SchemaRef
Schema before projection. It contains the columns that are expected to be in the files without the table partition columns.
file_groups: Vec<Vec<PartitionedFile>>
List of files to be processed, grouped into partitions
statistics: Statistics
Estimated overall statistics of the files, taking filters
into account.
projection: Option<Vec<usize>>
Columns on which to project the data. Indexes that are higher than the
number of columns of file_schema
refer to table_partition_cols
.
limit: Option<usize>
The minimum number of records required from this source plan
table_partition_cols: Vec<String>
The partitioning column names
Trait Implementations
sourceimpl Clone for FileScanConfig
impl Clone for FileScanConfig
sourcefn clone(&self) -> FileScanConfig
fn clone(&self) -> FileScanConfig
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 !RefUnwindSafe for FileScanConfig
impl Send for FileScanConfig
impl Sync for FileScanConfig
impl Unpin for FileScanConfig
impl !UnwindSafe for FileScanConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more