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<Result<DecoderMessage>>,
rows_per_batch: u32,
num_rows: u64,
root_decoder: SimpleStructDecoder,
) -> Self
pub fn new( scheduled: UnboundedReceiver<Result<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 aDecodeBatchSchedulerschema- the schema 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 UnsafeUnpin 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