-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRISJoin.java
More file actions
44 lines (34 loc) · 1.07 KB
/
IRISJoin.java
File metadata and controls
44 lines (34 loc) · 1.07 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
package sqlancer.iris.ast;
import sqlancer.Randomly;
import sqlancer.common.ast.newast.Join;
import sqlancer.iris.IRISSchema.IRISColumn;
import sqlancer.iris.IRISSchema.IRISDataType;
import sqlancer.iris.IRISSchema.IRISTable;
public class IRISJoin implements IRISExpression, Join<IRISExpression, IRISTable, IRISColumn> {
public enum IRISJoinType {
INNER, LEFT, RIGHT, FULL, CROSS;
public static IRISJoinType getRandom() {
return Randomly.fromOptions(values());
}
}
// private IRISTable tableReference;
// private IRISExpression onClause;
// private IRISJoinType type;
public IRISJoin(IRISExpression tablExpression, IRISExpression onClause, IRISJoinType type) {
// this.tableReference = tableReference;
// this.onClause = onClause;
// this.type = type;
}
@Override
public void setOnClause(IRISExpression clause) {
// this.onClause = clause;
}
@Override
public IRISDataType getExpressionType() {
throw new AssertionError();
}
@Override
public IRISConstant getExpectedValue() {
throw new AssertionError();
}
}