pub struct ExprIntervalGraphNode { /* private fields */ }Expand description
This is a node in the DAEG; it encapsulates a reference to the actual
PhysicalExpr as well as an interval containing expression bounds.
Implementations§
Source§impl ExprIntervalGraphNode
impl ExprIntervalGraphNode
Sourcepub fn new_unbounded(expr: Arc<dyn PhysicalExpr>, dt: &DataType) -> Result<Self>
pub fn new_unbounded(expr: Arc<dyn PhysicalExpr>, dt: &DataType) -> Result<Self>
Constructs a new DAEG node with an [-∞, ∞] range.
Sourcepub fn new_with_interval(
expr: Arc<dyn PhysicalExpr>,
interval: Interval,
) -> Self
pub fn new_with_interval( expr: Arc<dyn PhysicalExpr>, interval: Interval, ) -> Self
Constructs a new DAEG node with the given range.
Sourcepub fn interval(&self) -> &Interval
pub fn interval(&self) -> &Interval
Get the interval object representing the range of the expression.
Sourcepub fn make_node(
node: &ExprTreeNode<NodeIndex>,
schema: &Schema,
) -> Result<Self>
pub fn make_node( node: &ExprTreeNode<NodeIndex>, schema: &Schema, ) -> Result<Self>
This function creates a DAEG node from DataFusion’s ExprTreeNode
object. Literals are created with definite, singleton intervals while
any other expression starts with an indefinite interval ([-∞, ∞]).
Trait Implementations§
Source§impl Clone for ExprIntervalGraphNode
impl Clone for ExprIntervalGraphNode
Source§fn clone(&self) -> ExprIntervalGraphNode
fn clone(&self) -> ExprIntervalGraphNode
Returns a duplicate 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 Debug for ExprIntervalGraphNode
impl Debug for ExprIntervalGraphNode
Source§impl Display for ExprIntervalGraphNode
impl Display for ExprIntervalGraphNode
Source§impl PartialEq for ExprIntervalGraphNode
impl PartialEq for ExprIntervalGraphNode
Auto Trait Implementations§
impl Freeze for ExprIntervalGraphNode
impl !RefUnwindSafe for ExprIntervalGraphNode
impl Send for ExprIntervalGraphNode
impl Sync for ExprIntervalGraphNode
impl Unpin for ExprIntervalGraphNode
impl !UnwindSafe for ExprIntervalGraphNode
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§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