pub struct LogicalPlanSignature {
node_number: NonZeroUsize,
plan_hash: u64,
}Expand description
Non-unique identifier of a LogicalPlan.
See LogicalPlanSignature::new for details.
Fields§
§node_number: NonZeroUsize§plan_hash: u64Implementations§
Source§impl LogicalPlanSignature
impl LogicalPlanSignature
Sourcepub fn new(plan: &LogicalPlan) -> Self
pub fn new(plan: &LogicalPlan) -> Self
Returns LogicalPlanSignature of the given LogicalPlan.
It is a kind of LogicalPlan hashing with stronger guarantees.
§Guarantees
Consider two LogicalPlans p1 and p2.
If p1 and p2 have a different number of LogicalPlans, then
they will have different LogicalPlanSignatures.
If p1 and p2 have a different Hash, then
they will have different LogicalPlanSignatures.
§Caveats
The intention of LogicalPlanSignature is to have a lower chance
of hash collisions.
There exist different LogicalPlans with the same
LogicalPlanSignature.
When two LogicalPlans differ only in metadata, then they will have
the same LogicalPlanSignatures (due to hash implementation in
LogicalPlan).
Trait Implementations§
Source§impl Clone for LogicalPlanSignature
impl Clone for LogicalPlanSignature
Source§fn clone(&self) -> LogicalPlanSignature
fn clone(&self) -> LogicalPlanSignature
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 Hash for LogicalPlanSignature
impl Hash for LogicalPlanSignature
Source§impl PartialEq for LogicalPlanSignature
impl PartialEq for LogicalPlanSignature
impl Copy for LogicalPlanSignature
impl Eq for LogicalPlanSignature
impl StructuralPartialEq for LogicalPlanSignature
Auto Trait Implementations§
impl Freeze for LogicalPlanSignature
impl RefUnwindSafe for LogicalPlanSignature
impl Send for LogicalPlanSignature
impl Sync for LogicalPlanSignature
impl Unpin for LogicalPlanSignature
impl UnwindSafe for LogicalPlanSignature
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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