private static class RexSimplify.Comparison extends java.lang.Object implements RexSimplify.Predicate
Left hand side is a RexNode
, right hand side is a literal.
Modifier and Type | Field and Description |
---|---|
(package private) SqlKind |
kind |
(package private) RexLiteral |
literal |
(package private) RexNode |
ref |
Modifier | Constructor and Description |
---|---|
private |
Comparison(RexNode ref,
SqlKind kind,
RexLiteral literal) |
Modifier and Type | Method and Description |
---|---|
(package private) static RexSimplify.Comparison |
of(RexNode e)
Creates a comparison, between a
RexInputRef or RexFieldAccess
and a literal. |
(package private) static RexSimplify.Comparison |
of(RexNode e,
java.util.function.Predicate<RexNode> nodePredicate)
Creates a comparison, or returns null.
|
final RexNode ref
final SqlKind kind
final RexLiteral literal
private Comparison(RexNode ref, SqlKind kind, RexLiteral literal)
static RexSimplify.Comparison of(RexNode e)
RexInputRef
or RexFieldAccess
and a literal.of
in interface RexSimplify.Predicate
static RexSimplify.Comparison of(RexNode e, java.util.function.Predicate<RexNode> nodePredicate)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.