Struct polars::prelude::LazyJsonLineReader  
source · pub struct LazyJsonLineReader { /* private fields */ }Available on crate feature 
lazy only.Implementations§
source§impl LazyJsonLineReader
 
impl LazyJsonLineReader
pub fn new_paths(paths: Arc<[PathBuf]>) -> LazyJsonLineReader
pub fn new(path: impl AsRef<Path>) -> LazyJsonLineReader
sourcepub fn with_row_index(self, row_index: Option<RowIndex>) -> LazyJsonLineReader
 
pub fn with_row_index(self, row_index: Option<RowIndex>) -> LazyJsonLineReader
Add a row index column.
sourcepub fn with_ignore_errors(self, ignore_errors: bool) -> LazyJsonLineReader
 
pub fn with_ignore_errors(self, ignore_errors: bool) -> LazyJsonLineReader
Set values as Null if parsing fails because of schema mismatches.
sourcepub fn with_n_rows(self, num_rows: Option<usize>) -> LazyJsonLineReader
 
pub fn with_n_rows(self, num_rows: Option<usize>) -> LazyJsonLineReader
Try to stop parsing when n rows are parsed. During multithreaded parsing the upper bound n cannot
be guaranteed.
sourcepub fn with_infer_schema_length(
    self,
    num_rows: Option<usize>
) -> LazyJsonLineReader
 
pub fn with_infer_schema_length( self, num_rows: Option<usize> ) -> LazyJsonLineReader
Set the number of rows to use when inferring the json schema.
the default is 100 rows.
Ignored when the schema is specified explicitly using Self::with_schema.
Setting to None will do a full table scan, very slow.
sourcepub fn with_schema(self, schema: Option<Arc<Schema>>) -> LazyJsonLineReader
 
pub fn with_schema(self, schema: Option<Arc<Schema>>) -> LazyJsonLineReader
Set the JSON file’s schema
sourcepub fn low_memory(self, toggle: bool) -> LazyJsonLineReader
 
pub fn low_memory(self, toggle: bool) -> LazyJsonLineReader
Reduce memory usage at the expense of performance
pub fn with_batch_size( self, batch_size: Option<NonZero<usize>> ) -> LazyJsonLineReader
Trait Implementations§
source§impl AnonymousScan for LazyJsonLineReader
 
impl AnonymousScan for LazyJsonLineReader
fn as_any(&self) -> &(dyn Any + 'static)
source§fn scan(&self, scan_opts: AnonymousScanArgs) -> Result<DataFrame, PolarsError>
 
fn scan(&self, scan_opts: AnonymousScanArgs) -> Result<DataFrame, PolarsError>
Creates a DataFrame from the supplied function & scan options.
source§fn schema(
    &self,
    infer_schema_length: Option<usize>
) -> Result<Arc<Schema>, PolarsError>
 
fn schema( &self, infer_schema_length: Option<usize> ) -> Result<Arc<Schema>, PolarsError>
function to supply the schema.
Allows for an optional infer schema argument for data sources with dynamic schemas
source§fn allows_projection_pushdown(&self) -> bool
 
fn allows_projection_pushdown(&self) -> bool
specify if the scan provider should allow projection pushdowns Read more
§fn allows_predicate_pushdown(&self) -> bool
 
fn allows_predicate_pushdown(&self) -> bool
specify if the scan provider should allow predicate pushdowns Read more
§fn allows_slice_pushdown(&self) -> bool
 
fn allows_slice_pushdown(&self) -> bool
specify if the scan provider should allow slice pushdowns Read more
source§impl Clone for LazyJsonLineReader
 
impl Clone for LazyJsonLineReader
source§fn clone(&self) -> LazyJsonLineReader
 
fn clone(&self) -> LazyJsonLineReader
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 LazyFileListReader for LazyJsonLineReader
 
impl LazyFileListReader for LazyJsonLineReader
source§fn with_rechunk(self, toggle: bool) -> LazyJsonLineReader
 
fn with_rechunk(self, toggle: bool) -> LazyJsonLineReader
Rechunk the memory to contiguous chunks when parsing is done.
source§fn n_rows(&self) -> Option<usize>
 
fn n_rows(&self) -> Option<usize>
Try to stop parsing when n rows are parsed. During multithreaded parsing the upper bound n cannot
be guaranteed.
source§fn finish_no_glob(self) -> Result<LazyFrame, PolarsError>
 
fn finish_no_glob(self) -> Result<LazyFrame, PolarsError>
fn paths(&self) -> &[PathBuf]
source§fn with_path(self, path: PathBuf) -> LazyJsonLineReader
 
fn with_path(self, path: PathBuf) -> LazyJsonLineReader
Set path of the scanned file.
Support glob patterns.
source§fn with_paths(self, paths: Arc<[PathBuf]>) -> LazyJsonLineReader
 
fn with_paths(self, paths: Arc<[PathBuf]>) -> LazyJsonLineReader
Set paths of the scanned files.
Doesn’t glob patterns.
source§fn with_n_rows(self, n_rows: impl Into<Option<usize>>) -> LazyJsonLineReader
 
fn with_n_rows(self, n_rows: impl Into<Option<usize>>) -> LazyJsonLineReader
Configure the row limit.
source§fn with_row_index(
    self,
    row_index: impl Into<Option<RowIndex>>
) -> LazyJsonLineReader
 
fn with_row_index( self, row_index: impl Into<Option<RowIndex>> ) -> LazyJsonLineReader
Configure the row index.
source§fn concat_impl(&self, lfs: Vec<LazyFrame>) -> Result<LazyFrame, PolarsError>
 
fn concat_impl(&self, lfs: Vec<LazyFrame>) -> Result<LazyFrame, PolarsError>
fn glob(&self) -> bool
source§fn cloud_options(&self) -> Option<&CloudOptions>
 
fn cloud_options(&self) -> Option<&CloudOptions>
CloudOptions used to list files.
source§fn iter_paths(
    &self
) -> Result<Option<Box<dyn Iterator<Item = Result<PathBuf, PolarsError>>>>, PolarsError>
 
fn iter_paths( &self ) -> Result<Option<Box<dyn Iterator<Item = Result<PathBuf, PolarsError>>>>, PolarsError>
Get list of files referenced by this reader. Read more
Auto Trait Implementations§
impl Freeze for LazyJsonLineReader
impl RefUnwindSafe for LazyJsonLineReader
impl Send for LazyJsonLineReader
impl Sync for LazyJsonLineReader
impl Unpin for LazyJsonLineReader
impl UnwindSafe for LazyJsonLineReader
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> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more