Skip to content

Commit 73e0d8d

Browse files
committed
fix the OperatorType
fix the OperatorType
1 parent bd62227 commit 73e0d8d

File tree

1 file changed

+9
-11
lines changed
  • core/src/main/java/cn/edu/tsinghua/iginx/engine/shared/operator/type

1 file changed

+9
-11
lines changed

core/src/main/java/cn/edu/tsinghua/iginx/engine/shared/operator/type/OperatorType.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,22 @@ public enum OperatorType {
3030
ShowTimeSeries(20),
3131
Migration,
3232

33-
//isNeedBroadcasting[30,39]
34-
Delete(30),
35-
Insert,
36-
37-
// BinaryOperator[40,49]
38-
Join(40),
33+
// BinaryOperator[30,39]
34+
Join(30),
35+
Union,
3936
InnerJoin,
4037
OuterJoin,
4138
CrossJoin,
4239

4340

44-
// isUnaryOperator >= 50
45-
Binary(50),
41+
// isUnaryOperator >= 40
42+
Binary(40),
4643
Unary,
44+
Delete,
45+
Insert,
4746
Multiple,
4847
Project,
4948
Select,
50-
Union,
5149
Sort,
5250
Limit,
5351
Downsample,
@@ -80,11 +78,11 @@ private static class OperatorTypeCounter
8078
}
8179

8280
public static boolean isBinaryOperator(OperatorType op) {
83-
return 40 < op.value && op.value < 49;
81+
return op.value >= 30 && op.value <= 39;
8482
}
8583

8684
public static boolean isUnaryOperator(OperatorType op) {
87-
return op.value >= 50;
85+
return op.value >= 40;
8886
}
8987

9088
public static boolean isMultipleOperator(OperatorType op) {

0 commit comments

Comments
 (0)