OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.MyUDFFunction Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.MyUDFFunction:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.MyUDFFunction:

Public Member Functions

 MyUDFFunction ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

"MyUDFFunction" user-defined function test. our udf's will look like system functions to calcite as it has no access to the code

Definition at line 429 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.MyUDFFunction.MyUDFFunction ( )
inline

Definition at line 430 of file HeavyDBSqlOperatorTable.java.

430  {
431  super("MyUDF",
432  SqlKind.OTHER_FUNCTION,
433  null,
434  null,
435  OperandTypes.STRING_STRING,
436  SqlFunctionCategory.SYSTEM);
437  }

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.MyUDFFunction.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 440 of file HeavyDBSqlOperatorTable.java.

440  {
441  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
442  return typeFactory.createSqlType(SqlTypeName.BIGINT);
443  }

The documentation for this class was generated from the following file: