Class AdjustMatchRule


  • @API(EXPERIMENTAL)
    public class AdjustMatchRule
    extends PlannerRule<PartialMatch>
    A rule that attempts to improve an existing PartialMatch by absorbing an expression on the candidate side. Currently the only such expression that can be absorbed is MatchableSortExpression. TODO Maybe that expression should just be a generic property-defining expression or properties should be kept on quantifiers. It is special in a way that there is no corresponding expression on the query side that is subsumed by that expression. Absorbing such a candidate-side-only expression into the match allows us to fine-tune interesting provided properties guaranteed by the candidate side.