Skip to main content

Module drive_dispatcher

Module drive_dispatcher 

Source
Expand description

Top-level dispatcher for the ranked (ORDER BY <aggregate> LIMIT n OFFSET m) request.

Owns the pipeline: validate → resolve the ranking → pick the covering index → execute → wrap. The drive-abci handler builds a DocumentRankedRequest and calls Drive::execute_document_ranked_request; everything past contract lookup lives here.

Both DocumentRankedRequest and DocumentRankedResponse are the ABI for this dispatcher — public so drive-abci can name the input/output types without reaching into the executor surface.

Module is gated feature = "server" via the parent’s pub mod drive_dispatcher; declaration.

Structs§

DocumentRankedRequest
All inputs required by Drive::execute_document_ranked_request. Built by the gRPC handler from a GetDocumentsRequestV1 after wire-decoding + contract lookup.

Enums§

DocumentRankedResponse
Output shape of Drive::execute_document_ranked_request.