Struct coord::PersisterWithConfig [−][src]
pub struct PersisterWithConfig {
pub config: PersistConfig,
pub runtime: Option<RuntimeClient>,
pub table_details: BTreeMap<GlobalId, TablePersistDetails>,
pub table_writer: Option<MultiWriteHandle>,
pub all_table_ids: Vec<PersistId>,
}
Fields
config: PersistConfig
The configuration of the persistence runtime.
runtime: Option<RuntimeClient>
A client to the persistence runtime.
table_details: BTreeMap<GlobalId, TablePersistDetails>
Details about all persisted tables.
Tables are only stored in the map if persistence is enabled for that table.
table_writer: Option<MultiWriteHandle>
A writer that can write atomically to all tables in table_details
.
all_table_ids: Vec<PersistId>
The persist stream IDs for all tables in table_details
.
This is a denormalized copy of information stored in table_details
for
ease of use with some MultiWriteHandle
APIs.
Implementations
Creates a persist stream name for a new table.
Adds the given table to the set of tables managed by the persister.
Removes the given table from the set of tables managed by the persister.
pub fn new_serialized_source_persist_details(
&self,
id: GlobalId,
connector: &SourceConnector,
pretty: &str
) -> Option<SerializedSourcePersistDetails>
pub fn new_serialized_source_persist_details(
&self,
id: GlobalId,
connector: &SourceConnector,
pretty: &str
) -> Option<SerializedSourcePersistDetails>
Creates a SerializedSourcePersistDetails
for a new source.
pub fn load_source_persist_desc(
&self,
_: &Source
) -> Result<Option<SourcePersistDesc>, Error>
pub fn load_source_persist_desc(
&self,
_: &Source
) -> Result<Option<SourcePersistDesc>, Error>
Loads a source persist descriptor for an existing catalog source that reflects current frontier information.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PersisterWithConfig
impl Send for PersisterWithConfig
impl Sync for PersisterWithConfig
impl Unpin for PersisterWithConfig
impl !UnwindSafe for PersisterWithConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more