Struct lance_encoding::decoder::BatchDecodeStream
source · pub struct BatchDecodeStream { /* private fields */ }Expand description
A stream that takes scheduled jobs and generates decode tasks from them.
Implementations§
source§impl BatchDecodeStream
impl BatchDecodeStream
sourcepub fn new(
scheduled: UnboundedReceiver<DecoderMessage>,
rows_per_batch: u32,
num_rows: u64,
root_decoder: SimpleStructDecoder
) -> Self
pub fn new( scheduled: UnboundedReceiver<DecoderMessage>, rows_per_batch: u32, num_rows: u64, root_decoder: SimpleStructDecoder ) -> Self
Create a new instance of a batch decode stream
§Arguments
scheduled- an incoming stream of decode tasks from a [crate::decode::DecodeBatchScheduler]schema- the scheam of the data to createrows_per_batchthe number of rows to create before making a batchnum_rowsthe total number of rows schedulednum_columnsthe total number of columns in the file
pub fn into_stream(self) -> BoxStream<'static, ReadBatchTask>
Auto Trait Implementations§
impl Freeze for BatchDecodeStream
impl !RefUnwindSafe for BatchDecodeStream
impl Send for BatchDecodeStream
impl !Sync for BatchDecodeStream
impl Unpin for BatchDecodeStream
impl !UnwindSafe for BatchDecodeStream
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