Trait mz_storage::render::sinks::SinkRender
source · pub(crate) trait SinkRender<G>where
G: Scope<Timestamp = Timestamp>,{
// Required methods
fn uses_keys(&self) -> bool;
fn get_key_indices(&self) -> Option<&[usize]>;
fn get_relation_key_indices(&self) -> Option<&[usize]>;
fn render_continuous_sink(
&self,
storage_state: &mut StorageState,
sink: &StorageSinkDesc<MetadataFilled, Timestamp>,
sink_id: GlobalId,
sinked_collection: Collection<G, (Option<Row>, Option<Row>), Diff>,
err_collection: Collection<G, DataflowError, Diff>
) -> (Stream<G, HealthStatusMessage>, Vec<PressOnDropButton>)
where G: Scope<Timestamp = Timestamp>;
}
Expand description
A type that can be rendered as a dataflow sink.
Required Methods§
sourcefn get_key_indices(&self) -> Option<&[usize]>
fn get_key_indices(&self) -> Option<&[usize]>
TODO
sourcefn get_relation_key_indices(&self) -> Option<&[usize]>
fn get_relation_key_indices(&self) -> Option<&[usize]>
TODO
sourcefn render_continuous_sink(
&self,
storage_state: &mut StorageState,
sink: &StorageSinkDesc<MetadataFilled, Timestamp>,
sink_id: GlobalId,
sinked_collection: Collection<G, (Option<Row>, Option<Row>), Diff>,
err_collection: Collection<G, DataflowError, Diff>
) -> (Stream<G, HealthStatusMessage>, Vec<PressOnDropButton>)where
G: Scope<Timestamp = Timestamp>,
fn render_continuous_sink( &self, storage_state: &mut StorageState, sink: &StorageSinkDesc<MetadataFilled, Timestamp>, sink_id: GlobalId, sinked_collection: Collection<G, (Option<Row>, Option<Row>), Diff>, err_collection: Collection<G, DataflowError, Diff> ) -> (Stream<G, HealthStatusMessage>, Vec<PressOnDropButton>)where G: Scope<Timestamp = Timestamp>,
TODO