-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathCnosDBJoin.java
More file actions
46 lines (34 loc) · 1.06 KB
/
CnosDBJoin.java
File metadata and controls
46 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package sqlancer.cnosdb.ast;
import sqlancer.Randomly;
import sqlancer.cnosdb.CnosDBSchema.CnosDBDataType;
public class CnosDBJoin implements CnosDBExpression {
private final CnosDBExpression tableReference;
private final CnosDBExpression onClause;
private final CnosDBJoinType type;
public CnosDBJoin(CnosDBExpression tableReference, CnosDBExpression onClause, CnosDBJoinType type) {
this.tableReference = tableReference;
this.onClause = onClause;
this.type = type;
}
public CnosDBExpression getTableReference() {
return tableReference;
}
public CnosDBExpression getOnClause() {
return onClause;
}
public CnosDBJoinType getType() {
return type;
}
@Override
public CnosDBDataType getExpressionType() {
throw new AssertionError();
}
public enum CnosDBJoinType {
INNER, LEFT, RIGHT, FULL;
// now not support
// CROSS;
public static CnosDBJoinType getRandom() {
return Randomly.fromOptions(values());
}
}
}