pub(crate) struct StreamingData<'a> {
pub(crate) data: ReadStatData,
chunk_rows: usize,
expected_rows: usize,
rows_emitted: usize,
sink: &'a mut dyn FnMut(RecordBatch) -> Result<(), ReadStatError>,
}Expand description
Callback context used by the high-level reader to rotate builders while a single ReadStat parse is in progress.
Fields§
§data: ReadStatData§chunk_rows: usize§expected_rows: usize§rows_emitted: usize§sink: &'a mut dyn FnMut(RecordBatch) -> Result<(), ReadStatError>Implementations§
Source§impl StreamingData<'_>
impl StreamingData<'_>
pub(crate) fn finish_chunk(&mut self) -> Result<(), ReadStatError>
pub(crate) fn row_complete(&mut self) -> Result<(), ReadStatError>
Auto Trait Implementations§
impl<'a> Freeze for StreamingData<'a>
impl<'a> !RefUnwindSafe for StreamingData<'a>
impl<'a> !Send for StreamingData<'a>
impl<'a> !Sync for StreamingData<'a>
impl<'a> Unpin for StreamingData<'a>
impl<'a> UnsafeUnpin for StreamingData<'a>
impl<'a> !UnwindSafe for StreamingData<'a>
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> 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