Function mz_compute::sink::materialized_view_v2::write::render
source ยท pub fn render<S>(
sink_id: GlobalId,
persist_api: PersistApi,
as_of: Antichain<Timestamp>,
desired: &OkErr<Stream<S, (Row, Timestamp, Diff)>, Stream<S, (DataflowError, Timestamp, Diff)>>,
persist: &OkErr<Stream<S, (Row, Timestamp, Diff)>, Stream<S, (DataflowError, Timestamp, Diff)>>,
descs: &Stream<S, BatchDescription>,
) -> (Stream<S, ProtoBatch>, PressOnDropButton)
Expand description
Render the write
operator.
The parameters passed in are:
sink_id
: TheGlobalId
of the sink export.persist_api
: An object providing access to the output persist shard.as_of
: The first time for which the sink may produce output.desired
: The ok/err streams that should be sinked to persist.persist
: The ok/err streams read back from the output persist shard.descs
: The stream of batch descriptions produced by themint
operator.