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

pub struct PartitionTimestamps {
    id: PartitionId,
    bindings: Vec<(Timestamp, MzOffset)>,
}
Expand description

This struct holds per partition timestamp binding state, as a ordered list of bindings (time, offset). Each binding indicates “all offsets < offset must be bound to time”, and adjacent pairs of bindings (time1, offset1), (time2, offset2) denote that offsets in [offset1, offset2) should get bound to time1.

Fields

id: PartitionIdbindings: Vec<(Timestamp, MzOffset)>

Implementations

Advance all timestamp bindings to the frontier, and then combine overlapping offset ranges bound to the same timestamp.

Gets the minimal timestamp binding (time, offset) for offset (the minimal time with offset > requested offset.

Returns None if no such binding exists.

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