pub trait DataBatchQuery: Send {
// Required method
fn next_batch(&mut self) -> Result<Option<DataBatch>>;
// Provided method
fn reset(&mut self) -> Result<bool> { ... }
}Expand description
Streaming query session that yields ordered [DataBatch] chunks.
Required Methods§
Sourcefn next_batch(&mut self) -> Result<Option<DataBatch>>
fn next_batch(&mut self) -> Result<Option<DataBatch>>
Returns the next typed batch, or None after the session is exhausted.
§Errors
Returns an error if the underlying page source or typed conversion fails.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".