pub struct StreamingConfig {
pub buffer_size: usize,
pub chunk_size: usize,
}Expand description
Configuration for streaming query results
Controls buffer sizes and chunk sizes for memory-efficient processing of large result sets.
Fields§
§buffer_size: usizeChannel buffer size (controls backpressure) Default: 1024 rows in flight
chunk_size: usizeChunk size hint for writers (rows per chunk) Default: 10,000 rows (matches Parquet row group size)
Implementations§
Source§impl StreamingConfig
impl StreamingConfig
Sourcepub fn new(buffer_size: usize, chunk_size: usize) -> Self
pub fn new(buffer_size: usize, chunk_size: usize) -> Self
Create a new streaming config with custom settings
Sourcepub fn for_parquet() -> Self
pub fn for_parquet() -> Self
Create a config optimized for Parquet output
Sourcepub fn for_text_formats() -> Self
pub fn for_text_formats() -> Self
Create a config optimized for CSV/JSON output
Trait Implementations§
Source§impl Clone for StreamingConfig
impl Clone for StreamingConfig
Source§fn clone(&self) -> StreamingConfig
fn clone(&self) -> StreamingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamingConfig
impl Debug for StreamingConfig
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnsafeUnpin for StreamingConfig
impl UnwindSafe for StreamingConfig
Blanket Implementations§
impl<T> Allocation for T
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