Struct dataflow::source::timestamp::TimestampBindingBox[][src]

pub struct TimestampBindingBox {
    known_partitions: HashMap<PartitionId, Option<MzOffset>>,
    partitions: HashMap<PartitionId, PartitionTimestamps>,
    compaction_frontier: MutableAntichain<Timestamp>,
    durability_frontier: Antichain<Timestamp>,
    proposer: TimestampProposer,
    pub activators: Vec<Activator>,
}
Expand description

This struct holds per-source timestamp state in a way that can be shared across different source instances and allow different source instances to indicate how far they have read up to.

This type is almost never meant to be used directly, and you probably want to use TimestampBindingRc instead.

Fields

known_partitions: HashMap<PartitionId, Option<MzOffset>>

List of partitions that we learned about from the coordinator. This is used by source operators to learn about new partition assignments, it is purely a conduit for getting information from the coordinator to individual source operators.

Note: This is a bit of a hack, in the same way that we used partitions() before to forward new partitions from coordinator to source operator. We could factor this out of TimestampBinding* into it’s own piece that only deals with managing new partitions.

partitions: HashMap<PartitionId, PartitionTimestamps>

List of timestamp bindings per independent partition. This vector is sorted by timestamp and offset and each (time, offset) entry indicates that offsets <= offset should be assigned time as their timestamp. Consecutive entries form an interval of offsets.

compaction_frontier: MutableAntichain<Timestamp>

Indicates the lowest timestamp across all partitions that we retain bindings for. This frontier can be held back by other entities holding the shared TimestampBindingRc.

durability_frontier: Antichain<Timestamp>

Indicates the lowest timestamp across all partititions and across all workers that has been durably persisted.

proposer: TimestampProposer

Generates new timestamps for RT sources

activators: Vec<Activator>

Source operators that should be activated on durability changes.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

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