OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.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 341 of file

Constructor & Destructor Documentation

com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction.MyUDFFunction ( )

Definition at line 342 of file

342  {
343  super("MyUDF",
345  null,
346  null,
347  OperandTypes.STRING_STRING,
348  SqlFunctionCategory.SYSTEM);
349  }

Member Function Documentation

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

Definition at line 352 of file

References BIGINT.

352  {
353  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
354  return typeFactory.createSqlType(SqlTypeName.BIGINT);
355  }
#define BIGINT

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