Struct dataflow_types::client::controller::Controller[][src]

pub struct Controller<C> {
    client: C,
    source_descriptions: BTreeMap<GlobalId, Option<SourceDesc>>,
    compute_since_uppers: SinceUpperMap,
    storage_since_uppers: SinceUpperMap,
}
Expand description

A client that maintains soft state and validates commands, in addition to forwarding them.

Fields

client: C

The underlying client,

source_descriptions: BTreeMap<GlobalId, Option<SourceDesc>>

Sources that have been created.

A None variant means that the source was dropped before it was first created.

compute_since_uppers: SinceUpperMap

Tracks since and upper frontiers for indexes and sinks.

storage_since_uppers: SinceUpperMap

Tracks since and upper frontiers for sources and tables.

Implementations

Create a new controller from a client it should wrap.

Returns the source description for a given identifier.

The response does not distinguish between an as yet uncreated source description, and one that has been created and then dropped (or dropped without creation). There is a distinction and the client is aware of it, and could plausibly return this information if we had a use for it.

Returns the pair of since and upper for a maintained index, if it exists.

The since frontier indicates that the maintained data are certainly valid for times greater or equal to the frontier, but they may not be for other times. Attempting to create a dataflow using this id with an as_of that is not at least since will result in an error.

The upper frontier indicates that the data are reported available for all times not greater or equal to the frontier. Dataflows with an as_of greater or equal to this frontier may not immediately produce results.

Returns the pair of since and upper for a source, if it exists.

The since frontier indicates that the maintained data are certainly valid for times greater or equal to the frontier, but they may not be for other times. Attempting to create a dataflow using this id with an as_of that is not at least since will result in an error.

The upper frontier indicates that the data are reported available for all times not greater or equal to the frontier. Dataflows with an as_of greater or equal to this frontier may not immediately produce results.

Trait Implementations

Sends a command to the dataflow server.

Receives the next response from the dataflow server. 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