pub struct VarMap(/* private fields */);Expand description
Maps VarIds to DataFusion column name strings.
The binder allocates one VarId per distinct bound variable in a query
(e.g. a, b, r). VarMap records the DataFusion column name each
variable resolves to at execution time — typically "<alias>.node_id" for
node variables and "<alias>.edge_id" for edge variables.
Implementations§
Source§impl VarMap
impl VarMap
Sourcepub fn insert(&mut self, var: VarId, col_name: impl Into<String>)
pub fn insert(&mut self, var: VarId, col_name: impl Into<String>)
Records that variable var maps to DataFusion column col_name.
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Drops every registered variable. Used to install a fresh WITH scope so
pre-WITH variables stop resolving (mirrors the binder’s scope reset).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VarMap
impl RefUnwindSafe for VarMap
impl Send for VarMap
impl Sync for VarMap
impl Unpin for VarMap
impl UnsafeUnpin for VarMap
impl UnwindSafe for VarMap
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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