Package org.apache.calcite.test
Class MockSqlOperatorTable
- java.lang.Object
-
- org.apache.calcite.sql.util.ChainedSqlOperatorTable
-
- org.apache.calcite.test.MockSqlOperatorTable
-
- All Implemented Interfaces:
org.apache.calcite.sql.SqlOperatorTable
public class MockSqlOperatorTable extends org.apache.calcite.sql.util.ChainedSqlOperatorTable
Mock operator table for testing purposes. Contains the standard SQL operator table, plus a list of operators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockSqlOperatorTable.DedupFunction
"DEDUP" user-defined function.static class
MockSqlOperatorTable.RampFunction
"RAMP" user-defined function.
-
Field Summary
Fields Modifier and Type Field Description private org.apache.calcite.sql.util.ListSqlOperatorTable
listOpTab
-
Constructor Summary
Constructors Constructor Description MockSqlOperatorTable(org.apache.calcite.sql.SqlOperatorTable parentTable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOperator(org.apache.calcite.sql.SqlOperator op)
Adds an operator to this table.static void
addRamp(MockSqlOperatorTable opTab)
-
-
-
Method Detail
-
addOperator
public void addOperator(org.apache.calcite.sql.SqlOperator op)
Adds an operator to this table.
-
addRamp
public static void addRamp(MockSqlOperatorTable opTab)
-
-