pub struct WriterConnectConfig {
pub uri: String,
pub catalog: Option<CatalogConnectConfig>,
pub rotation_config: RotationConfig,
pub flush_interval_ms: Option<u64>,
pub record_filter: Option<WriterRecordFilter>,
pub promotion_interval_ms: Option<u64>,
pub promote_on_close: bool,
pub delete_feather_after_promotion: bool,
pub use_ts_event_for_ts_init: bool,
pub params: Option<Params>,
}Expand description
Connection settings handed to writer factories.
Fields§
§uri: StringLocal run-session directory the writer appends Feather files to.
catalog: Option<CatalogConnectConfig>Catalog that receives promoted data; required by every backend except Feather.
rotation_config: RotationConfigRotation settings used by built-in streaming writer backends.
flush_interval_ms: Option<u64>Optional automatic flush interval in milliseconds.
record_filter: Option<WriterRecordFilter>Optional record-family and identifier filter.
promotion_interval_ms: Option<u64>Interval in milliseconds for promoting sealed files into catalog.
promote_on_close: boolWhether closing the writer promotes remaining files into catalog.
delete_feather_after_promotion: boolWhether Feather files are deleted after a successful promotion.
use_ts_event_for_ts_init: boolWhether promotion replaces ts_init with ts_event.
params: Option<Params>Backend-specific writer parameters.
Implementations§
Source§impl WriterConnectConfig
impl WriterConnectConfig
Sourcepub fn new(
uri: impl Into<String>,
catalog: Option<CatalogConnectConfig>,
) -> Self
pub fn new( uri: impl Into<String>, catalog: Option<CatalogConnectConfig>, ) -> Self
Creates a connect config for the given writer directory and promotion catalog.
Sourcepub fn required_catalog(&self, backend: &str) -> Result<&CatalogConnectConfig>
pub fn required_catalog(&self, backend: &str) -> Result<&CatalogConnectConfig>
Returns the catalog that receives promoted data.
§Errors
Returns an error if no catalog is configured. The error names backend.
Trait Implementations§
Source§impl Clone for WriterConnectConfig
impl Clone for WriterConnectConfig
Auto Trait Implementations§
impl Freeze for WriterConnectConfig
impl RefUnwindSafe for WriterConnectConfig
impl Send for WriterConnectConfig
impl Sync for WriterConnectConfig
impl Unpin for WriterConnectConfig
impl UnsafeUnpin for WriterConnectConfig
impl UnwindSafe for WriterConnectConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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