pub struct Batch {
pub schema: RowSchema,
pub rows: Vec<PhysicalRow>,
}Expand description
A schema and bounded vector of physical rows flowing between operators.
Fields§
§schema: RowSchema§rows: Vec<PhysicalRow>Implementations§
Source§impl Batch
impl Batch
Sourcepub fn new(schema: RowSchema, rows: Vec<ResultRow>) -> Self
pub fn new(schema: RowSchema, rows: Vec<ResultRow>) -> Self
Compatibility constructor for named rows entering the physical engine. The resulting batch is positional immediately; maps do not flow to the next operator.
pub fn from_physical_rows(schema: RowSchema, rows: Vec<PhysicalRow>) -> Self
pub fn empty(schema: RowSchema) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn into_result_rows(self) -> Vec<ResultRow> ⓘ
Sourcepub fn into_owned_rows(self) -> Vec<OwnedPhysicalRow>
pub fn into_owned_rows(self) -> Vec<OwnedPhysicalRow>
Consume a batch without materializing named maps.
Trait Implementations§
impl StructuralPartialEq for Batch
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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> ErasedDestructor for Twhere
T: 'static,
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