pub(super) struct StreamedBatch {
pub batch: RecordBatch,
pub idx: usize,
pub join_arrays: Vec<ArrayRef>,
pub output_indices: Vec<StreamedJoinedChunk>,
pub buffered_batch_idx: Option<usize>,
pub join_filter_matched_idxs: HashSet<u64>,
}Expand description
Represents a record batch from streamed input.
Also stores information of matching rows from buffered batches.
Fields§
§batch: RecordBatchThe streamed record batch
idx: usizeThe index of row in the streamed batch to compare with buffered batches
join_arrays: Vec<ArrayRef>The join key arrays of streamed batch which are used to compare with buffered batches
and to produce output. They are produced by evaluating on expressions.
output_indices: Vec<StreamedJoinedChunk>Chunks of indices from buffered side (may be nulls) joined to streamed
buffered_batch_idx: Option<usize>Index of currently scanned batch from buffered data
join_filter_matched_idxs: HashSet<u64>Indices that found a match for the given join filter Used for semi joins to keep track the streaming index which got a join filter match and already emitted to the output.
Implementations§
Source§impl StreamedBatch
impl StreamedBatch
Auto Trait Implementations§
impl Freeze for StreamedBatch
impl !RefUnwindSafe for StreamedBatch
impl Send for StreamedBatch
impl Sync for StreamedBatch
impl Unpin for StreamedBatch
impl !UnwindSafe for StreamedBatch
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<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