Java Code Examples for org.apache.calcite.sql.SqlFunctionCategory#values()
The following examples show how to use
org.apache.calcite.sql.SqlFunctionCategory#values() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LookupOperatorOverloadsTest.java From calcite with Apache License 2.0 | 5 votes |
@Test void testIsUserDefined() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isUserDefined()) { cats.add(c); } } check(cats, USER_DEFINED_FUNCTION, USER_DEFINED_PROCEDURE, USER_DEFINED_CONSTRUCTOR, USER_DEFINED_SPECIFIC_FUNCTION, USER_DEFINED_TABLE_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION); }
Example 2
Source File: LookupOperatorOverloadsTest.java From calcite with Apache License 2.0 | 5 votes |
@Test void testIsTableFunction() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isTableFunction()) { cats.add(c); } } check(cats, USER_DEFINED_TABLE_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION, MATCH_RECOGNIZE); }
Example 3
Source File: LookupOperatorOverloadsTest.java From calcite with Apache License 2.0 | 5 votes |
@Test void testIsSpecific() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory c : SqlFunctionCategory.values()) { if (c.isSpecific()) { cats.add(c); } } check(cats, USER_DEFINED_SPECIFIC_FUNCTION, USER_DEFINED_TABLE_SPECIFIC_FUNCTION); }
Example 4
Source File: LookupOperatorOverloadsTest.java From calcite with Apache License 2.0 | 5 votes |
@Test void testIsUserDefinedNotSpecificFunction() throws SQLException { List<SqlFunctionCategory> cats = new ArrayList<>(); for (SqlFunctionCategory sqlFunctionCategory : SqlFunctionCategory.values()) { if (sqlFunctionCategory.isUserDefinedNotSpecificFunction()) { cats.add(sqlFunctionCategory); } } check(cats, USER_DEFINED_FUNCTION, USER_DEFINED_TABLE_FUNCTION); }