pub struct ScanExecutor<'a, P, S>{ /* private fields */ }Expand description
Thin wrapper capturing what the executor needs to run a scan.
Implementations§
Source§impl<'a, P, S> ScanExecutor<'a, P, S>
impl<'a, P, S> ScanExecutor<'a, P, S>
pub fn new(storage: &'a S) -> Self
pub fn table_id(&self) -> TableId
Sourcepub fn execute<'expr, F>(
&self,
_plan_graph: PlanGraph,
_programs: ProgramSet<'expr>,
projections: &[ScanProjection],
filter_expr: &Expr<'expr, FieldId>,
options: ScanStreamOptions<P>,
on_batch: &mut F,
) -> ExecutorResult<()>where
F: FnMut(RecordBatch),
pub fn execute<'expr, F>(
&self,
_plan_graph: PlanGraph,
_programs: ProgramSet<'expr>,
projections: &[ScanProjection],
filter_expr: &Expr<'expr, FieldId>,
options: ScanStreamOptions<P>,
on_batch: &mut F,
) -> ExecutorResult<()>where
F: FnMut(RecordBatch),
Execute a scan using the executor’s storage abstraction.
Auto Trait Implementations§
impl<'a, P, S> Freeze for ScanExecutor<'a, P, S>
impl<'a, P, S> RefUnwindSafe for ScanExecutor<'a, P, S>where
S: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, P, S> Send for ScanExecutor<'a, P, S>
impl<'a, P, S> Sync for ScanExecutor<'a, P, S>
impl<'a, P, S> Unpin for ScanExecutor<'a, P, S>where
P: Unpin,
impl<'a, P, S> UnwindSafe for ScanExecutor<'a, P, S>where
S: RefUnwindSafe,
P: UnwindSafe,
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> 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