Struct dataflow::render::ComputeState[][src]

pub struct ComputeState {
    pub traces: TraceManager,
    pub dataflow_tokens: HashMap<GlobalId, Box<dyn Any>>,
    pub tail_response_buffer: Rc<RefCell<Vec<(GlobalId, TailResponse)>>>,
    pub sink_write_frontiers: HashMap<GlobalId, Rc<RefCell<Antichain<Timestamp>>>>,
}
Expand description

Worker-local state that is maintained across dataflows.

This state is restricted to the COMPUTE state, the deterministic, idempotent work done between data ingress and egress.

Fields

traces: TraceManager

The traces available for sharing across dataflows.

dataflow_tokens: HashMap<GlobalId, Box<dyn Any>>

Tokens that should be dropped when a dataflow is dropped to clean up associated state.

tail_response_buffer: Rc<RefCell<Vec<(GlobalId, TailResponse)>>>

Shared buffer with TAIL operator instances by which they can respond.

The entries are pairs of sink identifier (to identify the tail instance) and the response itself.

sink_write_frontiers: HashMap<GlobalId, Rc<RefCell<Antichain<Timestamp>>>>

Frontier of sink writes (all subsequent writes will be at times at or equal to this frontier)

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