Struct dataflow_types::client::partitioned::PartitionedClientState[][src]

pub struct PartitionedClientState {
    uppers: HashMap<GlobalId, MutableAntichain<Timestamp>>,
    peek_responses: HashMap<u32, HashMap<usize, PeekResponse>>,
    parts: usize,
}
Expand description

Maintained state for sharded dataflow clients.

This helper type unifies the responses of multiple partitioned workers in order to present as a single worker.

Fields

uppers: HashMap<GlobalId, MutableAntichain<Timestamp>>

Upper frontiers for indexes, sources, and sinks.

peek_responses: HashMap<u32, HashMap<usize, PeekResponse>>

Pending responses for a peek; returnable once all are available.

parts: usize

Number of parts the state machine represents.

Implementations

Instantiates a new client state machine wrapping a number of parts.

Observes commands that move past, and prepares state for responses.

In particular, this method installs and removes upper frontier maintenance.

Absorbs a response, and produces response that should be emitted.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more