pub struct MaterializedCteScan {
pub id: MaterializedCteId,
pub name: String,
pub schema: DFSchemaRef,
}Expand description
Reads the buffered output of the MaterializedCte with the same id.
This is a leaf. Its schema is the schema of the CTE body and is fixed when the scan is created.
Fields§
§id: MaterializedCteIdThe id of the MaterializedCte that this scan reads
name: StringName of the CTE, used for display and error messages only
schema: DFSchemaRefThe schema of the CTE body
Implementations§
Source§impl MaterializedCteScan
impl MaterializedCteScan
Sourcepub fn new(
id: MaterializedCteId,
name: impl Into<String>,
schema: DFSchemaRef,
) -> Self
pub fn new( id: MaterializedCteId, name: impl Into<String>, schema: DFSchemaRef, ) -> Self
Create a scan of the CTE id, whose body has the schema schema.
Sourcepub fn id(&self) -> MaterializedCteId
pub fn id(&self) -> MaterializedCteId
The id of the MaterializedCte that this scan reads.
Sourcepub fn schema(&self) -> &DFSchemaRef
pub fn schema(&self) -> &DFSchemaRef
The schema of this scan.
Sourcepub fn find_in(plan: &LogicalPlan, id: MaterializedCteId) -> Result<Vec<Self>>
pub fn find_in(plan: &LogicalPlan, id: MaterializedCteId) -> Result<Vec<Self>>
Return a copy of each scan of the CTE id in plan, also in subquery
expressions.
The search does not go below a MaterializedCte with the same id
in plan. Such a node is a separate occurrence of the CTE (the id is
copied when a plan is cloned) and owns the scans below it.
Trait Implementations§
Source§impl Clone for MaterializedCteScan
impl Clone for MaterializedCteScan
Source§impl Debug for MaterializedCteScan
impl Debug for MaterializedCteScan
impl Eq for MaterializedCteScan
Source§impl Hash for MaterializedCteScan
impl Hash for MaterializedCteScan
Source§impl PartialEq for MaterializedCteScan
impl PartialEq for MaterializedCteScan
Source§impl PartialOrd for MaterializedCteScan
Orders by id and name. Scans with the same id and name but a
different schema are not comparable.
impl PartialOrd for MaterializedCteScan
Orders by id and name. Scans with the same id and name but a
different schema are not comparable.
impl StructuralPartialEq for MaterializedCteScan
Auto Trait Implementations§
impl Forget for MaterializedCteScan
impl Freeze for MaterializedCteScan
impl Move for MaterializedCteScan
impl RefUnwindSafe for MaterializedCteScan
impl Send for MaterializedCteScan
impl Sync for MaterializedCteScan
impl Unpin for MaterializedCteScan
impl UnsafeUnpin for MaterializedCteScan
impl UnwindSafe for MaterializedCteScan
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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