Expand description
Generic relational scoring terminal over the common operator tree.
One terminal scores any operator tree and retains a signed score per
terminal row; the operator decides WHICH rows exist, the terminal decides
WHAT each row scores and publishes signed deltas through
IncrementalConstraint. Arity lives entirely in the operator tree, so one
terminal serves every depth.
Re-exports§
pub use grouped_weights::DirectComplementAdapter;pub use grouped_weights::GroupAdapter;pub use grouped_weights::GroupedJoinAdapter;pub use grouped_weights::OptionalComplementAdapter;
Structs§
- Direct
Complement Adapter - Adapts a
(&K, &R)weight to complemented rows over groups keyed byK. - Group
Adapter - Adapts a
(&K, &R)group weight to rows of aGroupNodewith keyKand collector resultR. - Grouped
Join Adapter - Adapts a
(&K, &R, &B)weight to rows joining a grouped row (keyK, resultR) with aBentity. - Operator
Scorer - Scores one named terminal over a shared operator: its constraint
identity, impact, row weight and the unsigned score it retained for each
row. Built by
SharedOperatorBuilder::first_namedandnamed. - Operator
Terminal - Scoring terminal over a concrete operator tree, independent of row arity. Weight closures borrow the complete row; retention stores unsigned row weights (the impact is applied when they are summed), never entities or solution references.
- Optional
Complement Adapter - Like
DirectComplementAdapter, for groups keyed byOption<K>. - Scorer
Chain - Two scorer sets over one operator, scored left then right: the chain a
shared terminal grows by one
OperatorScorerper named terminal. - Shared
Operator Builder - Builder holding a terminal’s impact and weight until it is named.
- Shared
Operator Terminal - Scoring terminal that owns one operator tree and scores it for several named constraints.
Traits§
- Adapt
Weight - Turns an authored weight
Winto aRowWeightfor operatorO’s rows. - Operator
Scorer Set - The named terminals scoring one shared operator.
- RowWeight
- Unsigned score of one row of operator
O; the terminal applies the impact.