pub struct DataFrameStream { /* private fields */ }Expand description
Incremental batch source and stream contracts.
Incremental DataFrame result stream with one-way, repeatable terminal outcomes.
Implementations§
Source§impl DataFrameStream
impl DataFrameStream
Sourcepub fn from_factory(
factory: &dyn BatchSourceFactory,
options: StreamOptions,
) -> Result<Self>
pub fn from_factory( factory: &dyn BatchSourceFactory, options: StreamOptions, ) -> Result<Self>
Open a source factory after a compiler has already reported Supported eligibility.
Sourcepub fn schema(&self) -> SchemaRef
pub fn schema(&self) -> SchemaRef
Return the source schema while the stream remains open or terminal.
Sourcepub fn status(&self) -> StreamTerminal
pub fn status(&self) -> StreamTerminal
Return the current lifecycle state.
Sourcepub fn budget(&self) -> &ResourceBudget
pub fn budget(&self) -> &ResourceBudget
Return the shared budget used by this stream.
Sourcepub fn next_batch(&mut self) -> Result<Option<DataFrame>>
pub fn next_batch(&mut self) -> Result<Option<DataFrame>>
Yield the next finite DataFrame batch, or None after normal exhaustion.
Trait Implementations§
Source§impl Drop for DataFrameStream
impl Drop for DataFrameStream
Auto Trait Implementations§
impl !RefUnwindSafe for DataFrameStream
impl !Sync for DataFrameStream
impl !UnwindSafe for DataFrameStream
impl Freeze for DataFrameStream
impl Send for DataFrameStream
impl Unpin for DataFrameStream
impl UnsafeUnpin for DataFrameStream
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