pub struct ScalarSubqueryResults { /* private fields */ }Expand description
Shared results container for uncorrelated scalar subqueries.
Each entry corresponds to one scalar subquery, identified by its index.
Each slot is populated at execution time by ScalarSubqueryExec, read by
ScalarSubqueryExpr instances that share this container, and cleared when
the plan is reset for re-execution.
Implementations§
Source§impl ScalarSubqueryResults
impl ScalarSubqueryResults
Sourcepub fn new(n: usize) -> ScalarSubqueryResults
pub fn new(n: usize) -> ScalarSubqueryResults
Creates a new shared results container with n empty slots.
Sourcepub fn get(&self, index: SubqueryIndex) -> Option<ScalarValue>
pub fn get(&self, index: SubqueryIndex) -> Option<ScalarValue>
Returns the scalar value stored at index, if it has been populated.
Sourcepub fn set(
&self,
index: SubqueryIndex,
value: ScalarValue,
) -> Result<(), DataFusionError>
pub fn set( &self, index: SubqueryIndex, value: ScalarValue, ) -> Result<(), DataFusionError>
Stores value in the slot at index.
Sourcepub fn ptr_eq(
this: &ScalarSubqueryResults,
other: &ScalarSubqueryResults,
) -> bool
pub fn ptr_eq( this: &ScalarSubqueryResults, other: &ScalarSubqueryResults, ) -> bool
Returns true if this and other point to the same shared container.
Trait Implementations§
Source§impl Clone for ScalarSubqueryResults
impl Clone for ScalarSubqueryResults
Source§fn clone(&self) -> ScalarSubqueryResults
fn clone(&self) -> ScalarSubqueryResults
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScalarSubqueryResults
impl Debug for ScalarSubqueryResults
Source§impl Default for ScalarSubqueryResults
impl Default for ScalarSubqueryResults
Source§fn default() -> ScalarSubqueryResults
fn default() -> ScalarSubqueryResults
Returns the “default value” for a type. Read more
impl Eq for ScalarSubqueryResults
Source§impl Hash for ScalarSubqueryResults
impl Hash for ScalarSubqueryResults
Source§impl PartialEq for ScalarSubqueryResults
impl PartialEq for ScalarSubqueryResults
Source§fn eq(&self, other: &ScalarSubqueryResults) -> bool
fn eq(&self, other: &ScalarSubqueryResults) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl Freeze for ScalarSubqueryResults
impl RefUnwindSafe for ScalarSubqueryResults
impl Send for ScalarSubqueryResults
impl Sync for ScalarSubqueryResults
impl Unpin for ScalarSubqueryResults
impl UnsafeUnpin for ScalarSubqueryResults
impl UnwindSafe for ScalarSubqueryResults
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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<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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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