Package org.apache.calcite.test
Class MockSqlOperatorTable
java.lang.Object
org.apache.calcite.sql.util.ChainedSqlOperatorTable
org.apache.calcite.test.MockSqlOperatorTable
- All Implemented Interfaces:
SqlOperatorTable
Mock operator table for testing purposes. Contains the standard SQL operator
table, plus a list of operators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnother bad table function: declares itself as a table function but does not return CURSOR.static class"COMPARE_STRINGS_OR_NUMERIC_VALUES" is a user-defined function whose arguments can be either two strings or two numeric values of the same type.static class"COMPOSITE" user-defined scalar function.static class"DEDUP" user-defined table function.static class"DYNTYPE" user-defined table function.static classInvalid user-defined table function with multiple input tables with row semantics.static class"MAP" user-defined function.static class"MYAGGFUNC" user-defined aggregate function.static class"MYAGG" user-defined aggregate function.static class"MYFUN" user-defined scalar function.static classNot valid as a table function, even though it returns CURSOR, because it does not implementSqlTableFunction.static class"RAMP" user-defined table function.static class"ROW_FUNC" user-defined table function whose return type is row type with nullable and non-nullable fields.static class"Score" user-defined table function.static classSimilarity performs an analysis on two data sets, which are both tables of two columns, treated as the x and y axes of a graph.static class"SPLIT" user-defined function.static class"STRUCTURED_FUNC" user-defined function whose return type is structured type.static class"TFRT" user-defined table function.static class"TopN" user-defined table function. -
Field Summary
Fields inherited from class org.apache.calcite.sql.util.ChainedSqlOperatorTable
tableList -
Method Summary
Modifier and TypeMethodDescriptionextend()Returns this table with a few mock operators added.static MockSqlOperatorTableof(SqlOperatorTable operatorTable) Returns a mock operator table based on the given operator table.plus(Iterable<SqlLibrary> librarySet) Adds a library set.static MockSqlOperatorTablestandard()Returns the operator table that contains only the standard operators.Methods inherited from class org.apache.calcite.sql.util.ChainedSqlOperatorTable
add, getOperatorList, lookupOperatorOverloads
-
Method Details
-
standard
Returns the operator table that contains only the standard operators. -
of
Returns a mock operator table based on the given operator table. -
extend
Returns this table with a few mock operators added. -
plus
Adds a library set.
-