Struct datafusion::physical_expr::EquivalenceProperties
source · pub struct EquivalenceProperties<T = Column> { /* private fields */ }
Expand description
Represents a collection of EquivalentClass
(equivalences
between columns in relations)
This is used to represent both:
- Equality conditions (like
A=B
), whenT
=Column
- Ordering (like
A ASC = B ASC
), whenT
=PhysicalSortExpr
Implementations§
source§impl<T> EquivalenceProperties<T>where
T: Eq + Clone + Hash,
impl<T> EquivalenceProperties<T>where T: Eq + Clone + Hash,
pub fn new(schema: Arc<Schema>) -> EquivalenceProperties<T>
sourcepub fn classes(&self) -> &[EquivalentClass<T>]
pub fn classes(&self) -> &[EquivalentClass<T>]
return the set of equivalences
pub fn schema(&self) -> Arc<Schema>
sourcepub fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = EquivalentClass<T>>,
pub fn extend<I>(&mut self, iter: I)where I: IntoIterator<Item = EquivalentClass<T>>,
Add the EquivalentClass
from iter
to this list
sourcepub fn add_equal_conditions(&mut self, new_conditions: (&T, &T))
pub fn add_equal_conditions(&mut self, new_conditions: (&T, &T))
Adds new equal conditions into the EquivalenceProperties. New equal conditions usually come from equality predicates in a join/filter.
Trait Implementations§
source§impl<T> Clone for EquivalenceProperties<T>where
T: Clone,
impl<T> Clone for EquivalenceProperties<T>where T: Clone,
source§fn clone(&self) -> EquivalenceProperties<T>
fn clone(&self) -> EquivalenceProperties<T>
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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for EquivalenceProperties<T>where T: RefUnwindSafe,
impl<T> Send for EquivalenceProperties<T>where T: Send,
impl<T> Sync for EquivalenceProperties<T>where T: Sync,
impl<T> Unpin for EquivalenceProperties<T>where T: Unpin,
impl<T> UnwindSafe for EquivalenceProperties<T>where T: UnwindSafe,
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