public class RexImplicationChecker extends Object
If A ⇒ B, whenever A is true, B will be true also.
For example:
| Constructor and Description |
|---|
RexImplicationChecker(RexBuilder builder,
RexExecutor executor,
RelDataType rowType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
implies(RexNode first,
RexNode second)
Checks if condition first implies (⇒) condition second.
|
public RexImplicationChecker(RexBuilder builder, RexExecutor executor, RelDataType rowType)
public boolean implies(RexNode first, RexNode second)
This reduces to SAT problem which is NP-Complete. When this method says first implies second then it is definitely true. But it cannot prove that first does not imply second.
first - first conditionsecond - second conditionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.