OmniSciDB  b28c0d5765
 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 402 of file

Constructor & Destructor Documentation

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

Definition at line 403 of file

403  {
404  super("MyUDF",
406  null,
407  null,
408  OperandTypes.STRING_STRING,
409  SqlFunctionCategory.SYSTEM);
410  }

Member Function Documentation

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

Definition at line 413 of file

413  {
414  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
415  return typeFactory.createSqlType(SqlTypeName.BIGINT);
416  }

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