pub struct BatchSteps {
pub dropped: u64,
pub exact: bool,
/* private fields */
}Expand description
A chain of inline steps compiled for one input schema.
Fields§
§dropped: u64Rows dropped as poison (the per-row isolation path) since construction.
exact: boolWhether every expression in the chain translated exactly (no per-row UDF fallback).
Implementations§
Source§impl BatchSteps
impl BatchSteps
pub fn new(steps: Vec<Step>) -> Self
pub fn is_empty(&self) -> bool
Sourcepub fn apply(
&mut self,
batch: &RecordBatch,
) -> Result<RecordBatch, NotCompilable>
pub fn apply( &mut self, batch: &RecordBatch, ) -> Result<RecordBatch, NotCompilable>
Apply the chain to a batch. Err(NotCompilable) means this schema cannot be handled on the
batch path at all (fall back to rows); poison rows are isolated and counted, never an error.
Auto Trait Implementations§
impl !RefUnwindSafe for BatchSteps
impl !UnwindSafe for BatchSteps
impl Freeze for BatchSteps
impl Send for BatchSteps
impl Sync for BatchSteps
impl Unpin for BatchSteps
impl UnsafeUnpin for BatchSteps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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