Skip to main content

Module drive_dispatcher

Module drive_dispatcher 

Source
Expand description

Sum-query dispatcher entry point.

Parallels crate::query::drive_document_count_query::drive_dispatcher for the sum surface. Routes a parsed DocumentSumRequest to one of the per-mode executors based on the (where × mode × prove) triple, exactly the way count’s dispatcher does.

where_clauses_from_value / order_clauses_from_value are wire-shape adapters that the bench and the gRPC handler both use to convert the CBOR-decoded Value::Array input into structured Vec<WhereClause> / Vec<OrderClause>. Identical input contract to count.

Functions§

order_clauses_from_value
Parse the wire-CBOR Value::Array shape into structured Vec<OrderClause>. Delegates to count’s parser.
where_clauses_from_value
Parse the wire-CBOR Value::Array shape into structured Vec<WhereClause>. Delegates to count’s parser.