Expand description
Sum-index pickers. Parallels count’s index_picker.rs.
Two strict-coverage pickers:
find_summable_index_for_where_clauses: returns thesummable: "<prop>"index whose properties exactly match the Equal/In where-clause fields and whose summed property equals the request’ssum_property. None on miss (no partial coverage).find_range_summable_index_for_where_clauses: returns therangeSummable: trueindex whose Equal/In prefix covers the non-range clauses AND whose last property is the range terminator. None on miss.
Reject-on-miss is the load-bearing contract: callers landing in
“no covering index” return WhereClauseOnNonIndexedProperty so the
prover and verifier reject the same set of inputs (same as count).
Functions§
- find_
range_ summable_ index_ for_ where_ clauses - Find a
rangeSummable: trueindex whose properties cover the non-range Equal/In clauses as a prefix AND whose last property is the range terminator. The summed property must matchsum_property. - find_
summable_ index_ for_ where_ clauses - Find a
summable: "<prop>"index whose properties exactly cover the Equal/In where-clause fields AND whose summed property name equals the request’ssum_property.