Struct mz_storage_client::client::PartitionedStorageState
source · pub struct PartitionedStorageState<T> {
parts: usize,
uppers: BTreeMap<GlobalId, (MutableAntichain<T>, Vec<Option<Antichain<T>>>)>,
}
Expand description
Maintained state for partitioned storage clients.
This helper type unifies the responses of multiple partitioned workers in order to present as a single worker.
Fields§
§parts: usize
Number of partitions the state machine represents.
uppers: BTreeMap<GlobalId, (MutableAntichain<T>, Vec<Option<Antichain<T>>>)>
Upper frontiers for sources and sinks, both unioned across all partitions and from each individual partition.
Implementations§
source§impl<T> PartitionedStorageState<T>where
T: Timestamp,
impl<T> PartitionedStorageState<T>where
T: Timestamp,
fn observe_command(&mut self, command: &StorageCommand<T>)
Trait Implementations§
source§impl<T: Debug> Debug for PartitionedStorageState<T>
impl<T: Debug> Debug for PartitionedStorageState<T>
source§impl<T> PartitionedState<StorageCommand<T>, StorageResponse<T>> for PartitionedStorageState<T>where
T: Timestamp + Lattice,
impl<T> PartitionedState<StorageCommand<T>, StorageResponse<T>> for PartitionedStorageState<T>where
T: Timestamp + Lattice,
source§fn split_command(
&mut self,
command: StorageCommand<T>
) -> Vec<Option<StorageCommand<T>>> ⓘ
fn split_command(
&mut self,
command: StorageCommand<T>
) -> Vec<Option<StorageCommand<T>>> ⓘ
Splits a command into multiple partitions.
source§fn absorb_response(
&mut self,
shard_id: usize,
response: StorageResponse<T>
) -> Option<Result<StorageResponse<T>, Error>>
fn absorb_response(
&mut self,
shard_id: usize,
response: StorageResponse<T>
) -> Option<Result<StorageResponse<T>, Error>>
Absorbs a response from a single partition. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for PartitionedStorageState<T>where
T: RefUnwindSafe,
impl<T> Send for PartitionedStorageState<T>where
T: Send,
impl<T> Sync for PartitionedStorageState<T>where
T: Sync,
impl<T> Unpin for PartitionedStorageState<T>
impl<T> UnwindSafe for PartitionedStorageState<T>where
T: RefUnwindSafe,
Blanket Implementations§
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
.