Struct datafusion_expr::simplify::SimplifyContext
source · pub struct SimplifyContext<'a> { /* private fields */ }
Expand description
Provides simplification information based on DFSchema and
ExecutionProps
. This is the default implementation used by DataFusion
§Example
See the simplify_demo
in the expr_api
example
Implementations§
source§impl<'a> SimplifyContext<'a>
impl<'a> SimplifyContext<'a>
sourcepub fn new(props: &'a ExecutionProps) -> Self
pub fn new(props: &'a ExecutionProps) -> Self
Create a new SimplifyContext
sourcepub fn with_schema(self, schema: DFSchemaRef) -> Self
pub fn with_schema(self, schema: DFSchemaRef) -> Self
Register a DFSchemaRef
with this context
Trait Implementations§
source§impl<'a> Clone for SimplifyContext<'a>
impl<'a> Clone for SimplifyContext<'a>
source§fn clone(&self) -> SimplifyContext<'a>
fn clone(&self) -> SimplifyContext<'a>
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<'a> Debug for SimplifyContext<'a>
impl<'a> Debug for SimplifyContext<'a>
source§impl<'a> SimplifyInfo for SimplifyContext<'a>
impl<'a> SimplifyInfo for SimplifyContext<'a>
source§fn is_boolean_type(&self, expr: &Expr) -> Result<bool>
fn is_boolean_type(&self, expr: &Expr) -> Result<bool>
returns true if this Expr has boolean type
source§fn get_data_type(&self, expr: &Expr) -> Result<DataType>
fn get_data_type(&self, expr: &Expr) -> Result<DataType>
Returns data type of this expr needed for determining optimized int type of a value
source§fn execution_props(&self) -> &ExecutionProps
fn execution_props(&self) -> &ExecutionProps
Returns details needed for partial expression evaluation
Auto Trait Implementations§
impl<'a> Freeze for SimplifyContext<'a>
impl<'a> !RefUnwindSafe for SimplifyContext<'a>
impl<'a> Send for SimplifyContext<'a>
impl<'a> Sync for SimplifyContext<'a>
impl<'a> Unpin for SimplifyContext<'a>
impl<'a> !UnwindSafe for SimplifyContext<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)