Enum dataflow_types::client::ComputeCommand[][src]

pub enum ComputeCommand {
    CreateInstance,
    DropInstance,
    CreateDataflows(Vec<DataflowDescription<Plan>>),
    DropSinks(Vec<GlobalId>),
    DropIndexes(Vec<GlobalId>),
    Peek {
        id: GlobalId,
        key: Option<Row>,
        conn_id: u32,
        timestamp: Timestamp,
        finishing: RowSetFinishing,
        map_filter_project: SafeMfpPlan,
    },
    CancelPeek {
        conn_id: u32,
    },
    AllowIndexCompaction(Vec<(GlobalId, Antichain<Timestamp>)>),
    EnableLogging(LoggingConfig),
}
Expand description

Commands related to the computation and maintenance of views.

Variants

CreateInstance

Indicates the creation of an instance, and is the first command for its compute instance.

DropInstance

Indicates the termination of an instance, and is the last command for its compute instance.

CreateDataflows(Vec<DataflowDescription<Plan>>)

Tuple Fields

Create a sequence of dataflows.

Each of the dataflows must contain as_of members that are valid for each of the referenced arrangements, meaning AllowCompaction should be held back to those values until the command. Subsequent commands may arbitrarily compact the arrangements; the dataflow runners are responsible for ensuring that they can correctly maintain the dataflows.

DropSinks(Vec<GlobalId>)

Tuple Fields

Drop the sinks bound to these names.

DropIndexes(Vec<GlobalId>)

Tuple Fields

Drop the indexes bound to these namees.

Peek

Fields

id: GlobalId

The identifier of the arrangement.

key: Option<Row>

An optional key that should be used for the arrangement.

conn_id: u32

The identifier of this peek request.

Used in responses and cancelation requests.

timestamp: Timestamp

The logical timestamp at which the arrangement is queried.

finishing: RowSetFinishing

Actions to apply to the result set before returning them.

map_filter_project: SafeMfpPlan

Linear operation to apply in-line on each result.

Peek at an arrangement.

This request elicits data from the worker, by naming an arrangement and some actions to apply to the results before returning them.

The timestamp member must be valid for the arrangement that is referenced by id. This means that AllowCompaction for this arrangement should not pass timestamp before this command. Subsequent commands may arbitrarily compact the arrangements; the dataflow runners are responsible for ensuring that they can correctly answer the Peek.

CancelPeek

Fields

conn_id: u32

The identifier of the peek request to cancel.

Cancel the peek associated with the given conn_id.

AllowIndexCompaction(Vec<(GlobalId, Antichain<Timestamp>)>)

Tuple Fields

Enable compaction in views.

Each entry in the vector names a view and provides a frontier after which accumulations must be correct. The workers gain the liberty of compacting the corresponding maintained traces up through that frontier.

EnableLogging(LoggingConfig)

Tuple Fields

Request that the logging sources in the contained configuration are installed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Serialize this value into the given Serde serializer. 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.

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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