pub struct ScanResult {
plan: Arc<dyn ExecutionPlan>,
}Expand description
Result of a table scan operation from TableProvider::scan_with_args.
Fields§
§plan: Arc<dyn ExecutionPlan>Implementations§
Source§impl ScanResult
impl ScanResult
Sourcepub fn new(plan: Arc<dyn ExecutionPlan>) -> ScanResult
pub fn new(plan: Arc<dyn ExecutionPlan>) -> ScanResult
Create a new ScanResult with the given execution plan.
§Arguments
plan- The execution plan that will perform the table scan
Sourcepub fn plan(&self) -> &Arc<dyn ExecutionPlan>
pub fn plan(&self) -> &Arc<dyn ExecutionPlan>
Get a reference to the execution plan for this scan result.
Returns a reference to the ExecutionPlan that will perform
the actual table scanning and data retrieval.
Sourcepub fn into_inner(self) -> Arc<dyn ExecutionPlan>
pub fn into_inner(self) -> Arc<dyn ExecutionPlan>
Consume this ScanResult and return the execution plan.
Returns the owned ExecutionPlan that will perform
the actual table scanning and data retrieval.
Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
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 Debug for ScanResult
impl Debug for ScanResult
Source§impl From<Arc<dyn ExecutionPlan>> for ScanResult
impl From<Arc<dyn ExecutionPlan>> for ScanResult
Source§fn from(plan: Arc<dyn ExecutionPlan>) -> ScanResult
fn from(plan: Arc<dyn ExecutionPlan>) -> ScanResult
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScanResult
impl !RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl !UnwindSafe for ScanResult
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<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