Package org.apache.calcite.sql
Class SqlJdbcFunctionCall.SimpleMakeCall
- java.lang.Object
-
- org.apache.calcite.sql.SqlJdbcFunctionCall.SimpleMakeCall
-
- All Implemented Interfaces:
SqlJdbcFunctionCall.MakeCall
- Direct Known Subclasses:
SqlJdbcFunctionCall.PermutingMakeCall
- Enclosing class:
- SqlJdbcFunctionCall
public static class SqlJdbcFunctionCall.SimpleMakeCall extends java.lang.Object implements SqlJdbcFunctionCall.MakeCall
Converter that calls a built-in function with the same arguments.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SqlOperator
operator
-
Constructor Summary
Constructors Constructor Description SimpleMakeCall(SqlOperator operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlCall
createCall(SqlParserPos pos, SqlNode... operands)
Creates and return aSqlCall
.SqlOperator
getOperator()
java.lang.String
isValidArgCount(SqlCallBinding binding)
-
-
-
Field Detail
-
operator
final SqlOperator operator
-
-
Constructor Detail
-
SimpleMakeCall
public SimpleMakeCall(SqlOperator operator)
-
-
Method Detail
-
getOperator
public SqlOperator getOperator()
- Specified by:
getOperator
in interfaceSqlJdbcFunctionCall.MakeCall
-
createCall
public SqlCall createCall(SqlParserPos pos, SqlNode... operands)
Description copied from interface:SqlJdbcFunctionCall.MakeCall
Creates and return aSqlCall
. If the MakeCall strategy object was created with a reordering specified the call will be created with the operands reordered, otherwise no change of ordering is applied- Specified by:
createCall
in interfaceSqlJdbcFunctionCall.MakeCall
operands
- Operands
-
isValidArgCount
public java.lang.String isValidArgCount(SqlCallBinding binding)
- Specified by:
isValidArgCount
in interfaceSqlJdbcFunctionCall.MakeCall
-
-