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
impl !RefUnwindSafe for ComputeState
impl !Send for ComputeState
impl !Sync for ComputeState
impl Unpin for ComputeState
impl !UnwindSafe for ComputeState
Blanket Implementations
Mutably borrows from an owned value. Read more
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