12
12
/**
13
13
* Base class for boolean expression evaluation in the physical plan.
14
14
*/
15
- public abstract class BooleanExpr implements Expr {
16
- protected final Expr left ;
17
- protected final Expr right ;
15
+ public abstract class PhysicalBooleanExpr implements PhysicalExpr {
16
+ protected final PhysicalExpr left ;
17
+ protected final PhysicalExpr right ;
18
18
19
- protected BooleanExpr ( Expr left , Expr right ) {
19
+ protected PhysicalBooleanExpr ( PhysicalExpr left , PhysicalExpr right ) {
20
20
this .left = left ;
21
21
this .right = right ;
22
22
}
@@ -63,8 +63,8 @@ private static boolean toBool(Object value) {
63
63
throw new IllegalStateException ("Cannot convert to boolean: " + value );
64
64
}
65
65
66
- public static class AndExpression extends BooleanExpr {
67
- public AndExpression (Expr left , Expr right ) {
66
+ public static class AndExpression extends PhysicalBooleanExpr {
67
+ public AndExpression (PhysicalExpr left , PhysicalExpr right ) {
68
68
super (left , right );
69
69
}
70
70
@@ -74,8 +74,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
74
74
}
75
75
}
76
76
77
- public static class OrExpression extends BooleanExpr {
78
- public OrExpression (Expr left , Expr right ) {
77
+ public static class OrExpression extends PhysicalBooleanExpr {
78
+ public OrExpression (PhysicalExpr left , PhysicalExpr right ) {
79
79
super (left , right );
80
80
}
81
81
@@ -85,8 +85,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
85
85
}
86
86
}
87
87
88
- public static class EqExpression extends BooleanExpr {
89
- public EqExpression (Expr left , Expr right ) {
88
+ public static class EqExpression extends PhysicalBooleanExpr {
89
+ public EqExpression (PhysicalExpr left , PhysicalExpr right ) {
90
90
super (left , right );
91
91
}
92
92
@@ -112,8 +112,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
112
112
}
113
113
}
114
114
115
- public static class NeqExpression extends BooleanExpr {
116
- public NeqExpression (Expr left , Expr right ) {
115
+ public static class NeqExpression extends PhysicalBooleanExpr {
116
+ public NeqExpression (PhysicalExpr left , PhysicalExpr right ) {
117
117
super (left , right );
118
118
}
119
119
@@ -139,8 +139,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
139
139
}
140
140
}
141
141
142
- public static class LtExpression extends BooleanExpr {
143
- public LtExpression (Expr left , Expr right ) {
142
+ public static class LtExpression extends PhysicalBooleanExpr {
143
+ public LtExpression (PhysicalExpr left , PhysicalExpr right ) {
144
144
super (left , right );
145
145
}
146
146
@@ -166,8 +166,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
166
166
}
167
167
}
168
168
169
- public static class GtExpression extends BooleanExpr {
170
- public GtExpression (Expr left , Expr right ) {
169
+ public static class GtExpression extends PhysicalBooleanExpr {
170
+ public GtExpression (PhysicalExpr left , PhysicalExpr right ) {
171
171
super (left , right );
172
172
}
173
173
@@ -193,8 +193,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
193
193
}
194
194
}
195
195
196
- public static class LteExpression extends BooleanExpr {
197
- public LteExpression (Expr left , Expr right ) {
196
+ public static class LteExpression extends PhysicalBooleanExpr {
197
+ public LteExpression (PhysicalExpr left , PhysicalExpr right ) {
198
198
super (left , right );
199
199
}
200
200
@@ -222,8 +222,8 @@ protected boolean evaluate(Object left, Object right, ArrowType type) {
222
222
}
223
223
}
224
224
225
- public static class GteExpression extends BooleanExpr {
226
- public GteExpression (Expr left , Expr right ) {
225
+ public static class GteExpression extends PhysicalBooleanExpr {
226
+ public GteExpression (PhysicalExpr left , PhysicalExpr right ) {
227
227
super (left , right );
228
228
}
229
229
0 commit comments