Java Code Examples for org.apache.calcite.sql.type.OperandTypes#NILADIC
The following examples show how to use
org.apache.calcite.sql.type.OperandTypes#NILADIC .
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: SqlCurrentDateFunction.java From Bats with Apache License 2.0 | 5 votes |
public SqlCurrentDateFunction() { super( "CURRENT_DATE", SqlKind.OTHER_FUNCTION, ReturnTypes.DATE, null, OperandTypes.NILADIC, SqlFunctionCategory.TIMEDATE); }
Example 2
Source File: SqlCurrentDateFunction.java From calcite with Apache License 2.0 | 5 votes |
public SqlCurrentDateFunction() { super( "CURRENT_DATE", SqlKind.OTHER_FUNCTION, ReturnTypes.DATE, null, OperandTypes.NILADIC, SqlFunctionCategory.TIMEDATE); }
Example 3
Source File: SqlRankFunction.java From Bats with Apache License 2.0 | 4 votes |
public SqlRankFunction(SqlKind kind, SqlReturnTypeInference returnTypes, boolean requiresOrder) { super(kind.name(), null, kind, returnTypes, null, OperandTypes.NILADIC, SqlFunctionCategory.NUMERIC, requiresOrder, true, Optionality.FORBIDDEN); }
Example 4
Source File: SqlGroupIdFunction.java From Bats with Apache License 2.0 | 4 votes |
SqlGroupIdFunction() { super("GROUP_ID", SqlKind.GROUP_ID, ReturnTypes.BIGINT, null, OperandTypes.NILADIC, SqlFunctionCategory.SYSTEM); }
Example 5
Source File: SqlDefaultOperator.java From Bats with Apache License 2.0 | 4 votes |
SqlDefaultOperator() { super("DEFAULT", SqlKind.DEFAULT, 100, true, ReturnTypes.explicit(SqlTypeName.ANY), InferTypes.RETURN_TYPE, OperandTypes.NILADIC); }
Example 6
Source File: SqlBaseContextVariable.java From Bats with Apache License 2.0 | 4 votes |
/** Creates a SqlBaseContextVariable. */ protected SqlBaseContextVariable(String name, SqlReturnTypeInference returnType, SqlFunctionCategory category) { super(name, SqlKind.OTHER_FUNCTION, returnType, null, OperandTypes.NILADIC, category); }
Example 7
Source File: SqlRankFunction.java From calcite with Apache License 2.0 | 4 votes |
public SqlRankFunction(SqlKind kind, SqlReturnTypeInference returnTypes, boolean requiresOrder) { super(kind.name(), null, kind, returnTypes, null, OperandTypes.NILADIC, SqlFunctionCategory.NUMERIC, requiresOrder, true, Optionality.FORBIDDEN); }
Example 8
Source File: SqlGroupIdFunction.java From calcite with Apache License 2.0 | 4 votes |
SqlGroupIdFunction() { super("GROUP_ID", SqlKind.GROUP_ID, ReturnTypes.BIGINT, null, OperandTypes.NILADIC, SqlFunctionCategory.SYSTEM); }
Example 9
Source File: SqlDefaultOperator.java From calcite with Apache License 2.0 | 4 votes |
SqlDefaultOperator() { super("DEFAULT", SqlKind.DEFAULT, 100, true, ReturnTypes.explicit(SqlTypeName.ANY), InferTypes.RETURN_TYPE, OperandTypes.NILADIC); }
Example 10
Source File: SqlBaseContextVariable.java From calcite with Apache License 2.0 | 4 votes |
/** Creates a SqlBaseContextVariable. */ protected SqlBaseContextVariable(String name, SqlReturnTypeInference returnType, SqlFunctionCategory category) { super(name, SqlKind.OTHER_FUNCTION, returnType, null, OperandTypes.NILADIC, category); }