Enum mz_sql::plan::SourceSinkClusterConfig
source · pub enum SourceSinkClusterConfig {
Existing {
id: ClusterId,
},
Linked {
size: String,
},
Undefined,
}
Expand description
Specifies the cluster for a source or a sink.
Variants§
Existing
Use an existing cluster.
Linked
Create a new linked storage cluster of the specified size.
NOTE(benesch): in the future, we hope to remove the concept of a linked cluster, and always associate sources and sinks with an existing cluster.
Undefined
The user did not specify a cluster behavior, so the actual behavior depends on the context. For sources the behavior depends on the data source:
- Ingestion: Use the default behavior.
- Source: Use the same cluster as the data source source.
- Progress: Use the same cluster as the non-progress source.
- Webhook: Does not allow undefined configs.
For sinks, always use the default behavior.
NOTE(benesch): we plan to remove this variant in the future by having
the planner bind a source or sink with no SIZE
or IN CLUSTER
option
to the active cluster. This behavior won’t be ergonomic until we have
multipurpose clusters though.
Implementations§
source§impl SourceSinkClusterConfig
impl SourceSinkClusterConfig
sourcepub fn cluster_id(&self) -> Option<&ClusterId>
pub fn cluster_id(&self) -> Option<&ClusterId>
Returns the ID of the cluster that this source/sink will be created on, if one exists.
Trait Implementations§
source§impl Clone for SourceSinkClusterConfig
impl Clone for SourceSinkClusterConfig
source§fn clone(&self) -> SourceSinkClusterConfig
fn clone(&self) -> SourceSinkClusterConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceSinkClusterConfig
impl Debug for SourceSinkClusterConfig
source§impl<'de> Deserialize<'de> for SourceSinkClusterConfig
impl<'de> Deserialize<'de> for SourceSinkClusterConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Auto Trait Implementations§
impl RefUnwindSafe for SourceSinkClusterConfig
impl Send for SourceSinkClusterConfig
impl Sync for SourceSinkClusterConfig
impl Unpin for SourceSinkClusterConfig
impl UnwindSafe for SourceSinkClusterConfig
Blanket Implementations§
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.