package protocol.streams

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message Automatically

streams.top_level.proto:123

The performer should stream back responses as fast as it can.

Used in: Config

(message has no fields)

message CancelRequest

streams.top_level.proto:53

A request for the performer to cancel a stream. Exactly what this entails is context and SDK dependent. If the SDK's stream has the concept of user-cancellation, this should be invoked. At minimum, the performer should stop streaming responses from that stream to the driver. The performer can assume that if the driver tries to cancel a stream that doesn't exist (e.g. has stopped streaming), this is a driver bug. As a corollary, the driver will only cancel `stream_when.OnDemand` streams. Otherwise it would be a race as to whether the stream completes or is cancelled first. On cancellation the performer should not proceed to the next stage of streaming. E.g. it should not return a streams.Complete. But instead return a streams.Cancelled, after it has finished cancelling.

Used as request type in: PerformerService.streamCancel

message CancelResponse

streams.top_level.proto:59

The performer has successfully cancelled the stream. Due to the asynchronous nature of streaming and cancelling, a few items may still be streamed back to the driver after this is sent.

Currently empty, but included per GRPC best practices.

Used as response type in: PerformerService.streamCancel

(message has no fields)

message Cancelled

streams.top_level.proto:109

A stream has finished being cancelled.

Used in: Signal

message Complete

streams.top_level.proto:98

A stream has finished sending back all results.

Used in: Signal

message Config

streams.top_level.proto:128

Used in: sdk.kv.GetAllReplicas, sdk.kv.lookup_in.LookupInAllReplicas, sdk.kv.rangescan.Scan, sdk.search.Search, sdk.search.SearchWrapper

message Created

streams.top_level.proto:92

The performer has created a stream and is notifying the driver of it.

Used in: Signal

message Error

streams.top_level.proto:103

A stream raised an error.

Used in: Signal

message OnDemand

streams.top_level.proto:126

The performer must wait for the driver to request rows before streaming them.

Used in: Config

(message has no fields)

message RequestItemsRequest

streams.top_level.proto:82

The driver (pretending to be the user) is requesting more items. For each item requested, the performer should fetch one from the stream, and stream back an appropriate response. Once all items in the stream have been streamed, the performer should automatically proceed to the next stage of streaming (usually to return a streams.Complete). FIT is aware that some implementations (such as Go), don't have any lookahead, and that if the user/driver requests N items on a N item stream, the implementation does not know the stream is complete yet - the user/driver needs to request item N+1 first. To simplify the performer logic, the performer can assume that if the driver does any of these, it is a driver bug. It should raise a standard GRPC UNKNOWN error code: 1. If the driver tries to do this with a stream that doesn't exist (e.g. has stopped streaming), 2. If the driver requests more items before the performer has finished streaming back the previously requested items. If the driver requests more items than are currently in the stream, this is not an error, the performer should stream back as many as it can, and then wait for more items so it can satisfy the request. If the performer knows the stream has finished and the driver has still requested too many items, this is also not a bug. The performer should continue to the next stage of streaming (usually to return a streams.Complete).

Used as request type in: PerformerService.streamRequestItems

message RequestItemsResponse

streams.top_level.proto:87

Currently empty, but included per GRPC best practices.

Used as response type in: PerformerService.streamRequestItems

(message has no fields)

message Signal

streams.top_level.proto:113

Used in: run.Result

enum Type

streams.top_level.proto:12

Used in: Created