pub struct PartitionBatchState {
pub record_batch: RecordBatch,
pub is_end: bool,
pub n_out_row: usize,
}Expand description
State for each unique partition determined according to PARTITION BY column(s)
Fields§
§record_batch: RecordBatchThe record batch belonging to current partition
is_end: boolFlag indicating whether we have received all data for this partition
n_out_row: usizeNumber of rows emitted for this partition since the last pruning pass
Implementations§
Source§impl PartitionBatchState
impl PartitionBatchState
pub fn new(schema: SchemaRef) -> Self
pub fn new_with_batch(batch: RecordBatch) -> Self
pub fn extend(&mut self, batch: &RecordBatch) -> Result<()>
Trait Implementations§
Source§impl Clone for PartitionBatchState
impl Clone for PartitionBatchState
Source§fn clone(&self) -> PartitionBatchState
fn clone(&self) -> PartitionBatchState
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 PartitionBatchState
impl Debug for PartitionBatchState
Source§impl PartialEq for PartitionBatchState
impl PartialEq for PartitionBatchState
impl StructuralPartialEq for PartitionBatchState
Auto Trait Implementations§
impl !RefUnwindSafe for PartitionBatchState
impl !UnwindSafe for PartitionBatchState
impl Freeze for PartitionBatchState
impl Send for PartitionBatchState
impl Sync for PartitionBatchState
impl Unpin for PartitionBatchState
impl UnsafeUnpin for PartitionBatchState
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,
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