Struct mz_storage_client::types::sources::IngestionDescription
source · pub struct IngestionDescription<S = (), C = GenericSourceConnection> {
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.
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.
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, GenericSourceConnection>>
type Strategy = BoxedStrategy<IngestionDescription<S, GenericSourceConnection>>
The type of
Strategy
used to generate values of type Self
.§type Parameters = ()
type Parameters = ()
The type of parameters that
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> Clone for IngestionDescription<S, C>
impl<S: Clone, C: Clone> Clone for IngestionDescription<S, C>
source§fn clone(&self) -> IngestionDescription<S, C>
fn clone(&self) -> IngestionDescription<S, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de, S, C> Deserialize<'de> for IngestionDescription<S, C>where
S: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, S, C> Deserialize<'de> for IngestionDescription<S, C>where
S: Deserialize<'de>,
C: Deserialize<'de>,
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S: PartialEq, C: PartialEq> PartialEq<IngestionDescription<S, C>> for IngestionDescription<S, C>
impl<S: PartialEq, C: PartialEq> 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
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: Timestamp + Lattice + Codec64> ResumptionFrontierCalculator<T> for IngestionDescription<CollectionMetadata>
impl<T: Timestamp + Lattice + Codec64> ResumptionFrontierCalculator<T> for IngestionDescription<CollectionMetadata>
§type State = Vec<WriteHandle<SourceData, (), T, i64>, Global>
type State = Vec<WriteHandle<SourceData, (), T, i64>, Global>
Opaque state that a
ResumptionFrontierCalculator
needs to repeatedly
(and efficiently) calculate a resumption frontier.source§fn initialize_state<'life0, 'life1, 'async_trait>(
&'life0 self,
client_cache: &'life1 PersistClientCache
) -> Pin<Box<dyn Future<Output = Self::State> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn initialize_state<'life0, 'life1, 'async_trait>(
&'life0 self,
client_cache: &'life1 PersistClientCache
) -> Pin<Box<dyn Future<Output = Self::State> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates an opaque state type that can be used to efficiently calculate a
new resumption frontier when needed.
source§impl RustType<ProtoIngestionDescription> for IngestionDescription<CollectionMetadata>
impl RustType<ProtoIngestionDescription> for IngestionDescription<CollectionMetadata>
source§fn into_proto(&self) -> ProtoIngestionDescription
fn into_proto(&self) -> ProtoIngestionDescription
Convert a
Self
into a Proto
value.source§fn from_proto(
proto: ProtoIngestionDescription
) -> Result<Self, TryFromProtoError>
fn from_proto(
proto: ProtoIngestionDescription
) -> Result<Self, TryFromProtoError>
impl<S: Eq, C: Eq> Eq for IngestionDescription<S, C>
impl<S, C> StructuralEq for IngestionDescription<S, C>
impl<S, C> StructuralPartialEq for IngestionDescription<S, C>
Auto Trait Implementations§
impl<S, C> RefUnwindSafe for IngestionDescription<S, C>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, C> Send for IngestionDescription<S, C>where
C: Send,
S: Send,
impl<S, C> Sync for IngestionDescription<S, C>where
C: Sync,
S: Sync,
impl<S, C> Unpin for IngestionDescription<S, C>where
C: Unpin,
S: Unpin,
impl<S, C> UnwindSafe for IngestionDescription<S, C>where
C: UnwindSafe,
S: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
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
Compare self to
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>
Wrap the input message
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>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.