pub struct RunStreamOptions {
pub state_store: Option<Arc<dyn StateStore>>,
pub state_key: Option<String>,
pub pipeline_name: Option<String>,
pub row: Option<String>,
pub run_id: Option<String>,
pub dlq: Option<DlqConfig>,
pub quality: Option<Arc<CompiledQuality>>,
pub adaptive: Option<AdaptiveBatchConfig>,
pub cancel: Option<CancellationToken>,
pub delivery: DeliveryMode,
pub start_seq: u64,
}Fields§
§state_store: Option<Arc<dyn StateStore>>§state_key: Option<String>§pipeline_name: Option<String>§row: Option<String>§run_id: Option<String>§dlq: Option<DlqConfig>§quality: Option<Arc<CompiledQuality>>quality only.adaptive: Option<AdaptiveBatchConfig>Adaptive batch-size controller config; None (or enabled = false)
leaves the per-page write path unchanged.
cancel: Option<CancellationToken>Cooperative cancellation. When set and cancelled mid-run, the streaming loop stops polling new pages, flushes the sinks (so a buffered sink like Parquet writes its footer / completes its upload rather than orphaning the file), and returns the partial result. Without this, a dropped run future loses everything written-but-unflushed (#146 H16).
delivery: DeliveryModeDelivery guarantee. AtLeastOnce (default) leaves the write path
unchanged. ExactlyOnce enables the resume/skip + atomic-token path.
start_seq: u64Resume sequence read from the (unwrapped) exactly-once state value.
Ignored unless delivery == ExactlyOnce. Defaults to 0.
Implementations§
Source§impl RunStreamOptions
impl RunStreamOptions
pub fn new() -> Self
pub fn with_state( self, store: Arc<dyn StateStore>, key: impl Into<String>, ) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_row(self, row: impl Into<String>) -> Self
pub fn with_run_id(self, id: impl Into<String>) -> Self
pub fn with_dlq(self, dlq: DlqConfig) -> Self
Sourcepub fn with_cancel(self, cancel: CancellationToken) -> Self
pub fn with_cancel(self, cancel: CancellationToken) -> Self
Attach a cancellation token for cooperative, flush-completing cancel.
Sourcepub fn with_adaptive(self, cfg: AdaptiveBatchConfig) -> Self
pub fn with_adaptive(self, cfg: AdaptiveBatchConfig) -> Self
Attach an adaptive batch-size controller config.
pub fn with_quality(self, quality: Arc<CompiledQuality>) -> Self
quality only.Sourcepub fn with_delivery(self, mode: DeliveryMode) -> Self
pub fn with_delivery(self, mode: DeliveryMode) -> Self
Set the delivery mode.
Sourcepub fn with_start_seq(self, seq: u64) -> Self
pub fn with_start_seq(self, seq: u64) -> Self
Set the resume sequence (exactly-once). Normally derived by
Pipeline::run from the unwrapped state value.
Trait Implementations§
Source§impl Clone for RunStreamOptions
impl Clone for RunStreamOptions
Source§fn clone(&self) -> RunStreamOptions
fn clone(&self) -> RunStreamOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more