Struct mz_storage_client::types::sources::IngestionDescription
source · pub struct IngestionDescription<S = (), C: ConnectionAccess = InlinedConnection> {
pub desc: SourceDesc<C>,
pub source_imports: BTreeMap<GlobalId, S>,
pub ingestion_metadata: S,
pub source_exports: BTreeMap<GlobalId, SourceExport<S>>,
pub instance_id: StorageInstanceId,
pub remap_collection_id: GlobalId,
}
Expand description
A description of a source ingestion
Fields§
§desc: SourceDesc<C>
The source description
source_imports: BTreeMap<GlobalId, S>
Source collections made available to this ingestion.
ingestion_metadata: S
Additional storage controller metadata needed to ingest this source
source_exports: BTreeMap<GlobalId, SourceExport<S>>
Collections to be exported by this ingestion.
This field includes the primary source’s ID, which must be filtered out to understand which exports are data-bearing subsources.
Note that this does not include the remap collection, which is tracked in its own field.
instance_id: StorageInstanceId
The ID of the instance in which to install the source.
remap_collection_id: GlobalId
The ID of this ingestion’s remap/progress collection.
Implementations§
source§impl<S> IngestionDescription<S>
impl<S> IngestionDescription<S>
sourcepub fn subsource_ids(&self) -> impl Iterator<Item = GlobalId> + '_
pub fn subsource_ids(&self) -> impl Iterator<Item = GlobalId> + '_
Return an iterator over the GlobalId
s of self
’s subsources.
source§impl<S: Debug + Eq + PartialEq> IngestionDescription<S>
impl<S: Debug + Eq + PartialEq> IngestionDescription<S>
sourcepub fn alter_compatible(
&self,
id: GlobalId,
other: &IngestionDescription<S>
) -> Result<(), StorageError>
pub fn alter_compatible( &self, id: GlobalId, other: &IngestionDescription<S> ) -> Result<(), StorageError>
Determines if self
is compatible with another IngestionDescription
,
in such a way that it is possible to turn self
into other
through a
valid series of transformations (e.g. no transformation or ALTER SOURCE
).
Trait Implementations§
source§impl<S> Arbitrary for IngestionDescription<S>where
S: Arbitrary + 'static,
impl<S> Arbitrary for IngestionDescription<S>where S: Arbitrary + 'static,
§type Strategy = BoxedStrategy<IngestionDescription<S, InlinedConnection>>
type Strategy = BoxedStrategy<IngestionDescription<S, InlinedConnection>>
Strategy
used to generate values of type Self
.§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
source§impl<S: Clone, C: Clone + ConnectionAccess> Clone for IngestionDescription<S, C>
impl<S: Clone, C: Clone + ConnectionAccess> Clone for IngestionDescription<S, C>
source§fn clone(&self) -> IngestionDescription<S, C>
fn clone(&self) -> IngestionDescription<S, C>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<S: Debug, C: Debug + ConnectionAccess> Debug for IngestionDescription<S, C>
impl<S: Debug, C: Debug + ConnectionAccess> Debug for IngestionDescription<S, C>
source§impl<'de, S, C> Deserialize<'de> for IngestionDescription<S, C>where
S: Deserialize<'de>,
C: Deserialize<'de> + ConnectionAccess,
impl<'de, S, C> Deserialize<'de> for IngestionDescription<S, C>where S: Deserialize<'de>, C: Deserialize<'de> + ConnectionAccess,
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>,
source§impl<R: ConnectionResolver> IntoInlineConnection<IngestionDescription<(), InlinedConnection>, R> for IngestionDescription<(), ReferencedConnection>
impl<R: ConnectionResolver> IntoInlineConnection<IngestionDescription<(), InlinedConnection>, R> for IngestionDescription<(), ReferencedConnection>
fn into_inline_connection(self, r: R) -> IngestionDescription
source§impl<S: PartialEq, C: PartialEq + ConnectionAccess> PartialEq<IngestionDescription<S, C>> for IngestionDescription<S, C>
impl<S: PartialEq, C: PartialEq + ConnectionAccess> PartialEq<IngestionDescription<S, C>> for IngestionDescription<S, C>
source§fn eq(&self, other: &IngestionDescription<S, C>) -> bool
fn eq(&self, other: &IngestionDescription<S, C>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RustType<ProtoIngestionDescription> for IngestionDescription<CollectionMetadata>
impl RustType<ProtoIngestionDescription> for IngestionDescription<CollectionMetadata>
source§fn into_proto(&self) -> ProtoIngestionDescription
fn into_proto(&self) -> ProtoIngestionDescription
Self
into a Proto
value.source§fn from_proto(
proto: ProtoIngestionDescription
) -> Result<Self, TryFromProtoError>
fn from_proto( proto: ProtoIngestionDescription ) -> Result<Self, TryFromProtoError>
source§impl<S, C> Serialize for IngestionDescription<S, C>where
S: Serialize,
C: Serialize + ConnectionAccess,
impl<S, C> Serialize for IngestionDescription<S, C>where S: Serialize, C: Serialize + ConnectionAccess,
impl<S: Eq, C: Eq + ConnectionAccess> Eq for IngestionDescription<S, C>
impl<S, C: ConnectionAccess> StructuralEq for IngestionDescription<S, C>
impl<S, C: ConnectionAccess> StructuralPartialEq for IngestionDescription<S, C>
Auto Trait Implementations§
impl<S, C> RefUnwindSafe for IngestionDescription<S, C>where S: RefUnwindSafe, <C as ConnectionAccess>::Kafka: RefUnwindSafe, <C as ConnectionAccess>::Pg: RefUnwindSafe, <C as ConnectionAccess>::Ssh: RefUnwindSafe,
impl<S, C> Send for IngestionDescription<S, C>where S: Send, <C as ConnectionAccess>::Kafka: Send, <C as ConnectionAccess>::Pg: Send, <C as ConnectionAccess>::Ssh: Send,
impl<S, C> Sync for IngestionDescription<S, C>where S: Sync, <C as ConnectionAccess>::Kafka: Sync, <C as ConnectionAccess>::Pg: Sync, <C as ConnectionAccess>::Ssh: Sync,
impl<S, C> Unpin for IngestionDescription<S, C>where S: Unpin, <C as ConnectionAccess>::Kafka: Unpin, <C as ConnectionAccess>::Pg: Unpin, <C as ConnectionAccess>::Ssh: Unpin,
impl<S, C> UnwindSafe for IngestionDescription<S, C>where S: UnwindSafe + RefUnwindSafe, <C as ConnectionAccess>::Kafka: UnwindSafe, <C as ConnectionAccess>::Pg: UnwindSafe, <C as ConnectionAccess>::Ssh: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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
.