Package org.apache.calcite.rex
Class RexSimplify.Comparison
- java.lang.Object
-
- org.apache.calcite.rex.RexSimplify.Comparison
-
- All Implemented Interfaces:
RexSimplify.Predicate
- Enclosing class:
- RexSimplify
private static class RexSimplify.Comparison extends java.lang.Object implements RexSimplify.Predicate
Comparison between aRexInputRef
orRexFieldAccess
and a literal. Literal may be on left or right side, and may be null.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Comparison(RexNode ref, SqlKind kind, RexLiteral literal)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static RexSimplify.Comparison
of(RexNode e)
Creates a comparison, or returns null.
-
-
-
Field Detail
-
ref
final RexNode ref
-
kind
final SqlKind kind
-
literal
final RexLiteral literal
-
-
Constructor Detail
-
Comparison
private Comparison(RexNode ref, SqlKind kind, RexLiteral literal)
-
-
Method Detail
-
of
static RexSimplify.Comparison of(RexNode e)
Creates a comparison, or returns null.
-
-