Struct polars_plan::logical_plan::FileInfo
source · pub struct FileInfo {
pub schema: SchemaRef,
pub reader_schema: Option<ArrowSchemaRef>,
pub row_estimation: (Option<usize>, usize),
pub hive_parts: Option<Arc<HivePartitions>>,
}
Fields§
§schema: SchemaRef
§reader_schema: Option<ArrowSchemaRef>
Stores the schema used for the reader, as the main schema can contain extra hive columns.
row_estimation: (Option<usize>, usize)
- known size
- estimated size
hive_parts: Option<Arc<HivePartitions>>
Implementations§
source§impl FileInfo
impl FileInfo
pub fn new( schema: SchemaRef, reader_schema: Option<ArrowSchemaRef>, row_estimation: (Option<usize>, usize) ) -> Self
sourcepub fn init_hive_partitions(&mut self, url: &Path) -> PolarsResult<()>
pub fn init_hive_partitions(&mut self, url: &Path) -> PolarsResult<()>
Updates the statistics and merges the hive partitions schema with the file one.
sourcepub fn update_hive_partitions(&mut self, url: &Path) -> PolarsResult<()>
pub fn update_hive_partitions(&mut self, url: &Path) -> PolarsResult<()>
Updates the statistics, but not the schema.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileInfo
impl !RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl !UnwindSafe for FileInfo
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