pub struct StructuralBatchDecodeStream { /* private fields */ }Expand description
A stream that takes scheduled jobs and generates decode tasks from them.
Implementations§
Source§impl StructuralBatchDecodeStream
impl StructuralBatchDecodeStream
Sourcepub fn new(
scheduled: UnboundedReceiver<Result<DecoderMessage>>,
rows_per_batch: u32,
num_rows: u64,
root_decoder: StructuralStructDecoder,
) -> Self
pub fn new( scheduled: UnboundedReceiver<Result<DecoderMessage>>, rows_per_batch: u32, num_rows: u64, root_decoder: StructuralStructDecoder, ) -> 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 StructuralBatchDecodeStream
impl !RefUnwindSafe for StructuralBatchDecodeStream
impl Send for StructuralBatchDecodeStream
impl !Sync for StructuralBatchDecodeStream
impl Unpin for StructuralBatchDecodeStream
impl UnsafeUnpin for StructuralBatchDecodeStream
impl !UnwindSafe for StructuralBatchDecodeStream
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