Skip to main content

Config

Struct Config 

Source
pub struct Config { /* private fields */ }

Implementations§

Source§

impl Config

Source

pub fn reload_env_vars(&self)

Reload the config from all environment variables.

Source

pub fn reload_env_var(&self, var: &str)

Reload a specific environment variable.

Source

pub fn verbose(&self) -> bool

Whether we should do verbose printing.

Source

pub fn warn_unstable(&self) -> bool

Whether we should warn when unstable features are used.

Source

pub fn max_threads(&self) -> usize

The number of threads Polars should ideally use for CPU-intensive work.

Source

pub fn ideal_morsel_size(&self) -> u64

The ideal size of a morsel, in rows.

Source

pub fn engine_affinity(&self) -> Engine

Which engine to use by default.

Source

pub fn parquet_binary_statistics_truncate_length(&self) -> u64

Target byte length to truncate statistics to for binary/string columns in parquet.

Source

pub fn prune_parquet_metadata(&self) -> bool

Whether the optimizer should prune parquet metadata to projected/predicate columns before serializing the IR plan. See parquet_metadata_prune in polars-plan.

Source

pub fn allow_nested_cspe(&self) -> bool

Nested common subplan elimination.

Source

pub fn resolve_metadata_level(&self) -> ResolveMode

How much per-file metadata parquet_file_info resolves at planning time. See ResolveMode for the variants and their cost / IR-shape trade-offs.

Source

pub fn verbose_sensitive(&self) -> bool

Whether we should do verbose printing on sensitive information.

Source

pub fn force_async(&self) -> bool

Source

pub fn import_interval_as_struct(&self) -> bool

Source

pub fn ooc_drift_threshold(&self) -> u64

Source

pub fn ooc_spill_policy(&self) -> SpillPolicy

Source

pub fn ooc_spill_format(&self) -> SpillFormat

Source

pub fn ooc_memory_budget_fraction(&self) -> f64

Source

pub fn ooc_spill_min_bytes(&self) -> u64

Source

pub fn ooc_spill_dir(&self) -> PathBuf

Source

pub fn join_sample_limit(&self) -> u64

Source

pub fn projection_pushdown_prune_strict_hconcat_inputs(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.