OmniSciDB  f17484ade4
 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 422 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 423 of file HeavyDBSqlOperatorTable.java.

423  {
424  super("MyUDF",
425  SqlKind.OTHER_FUNCTION,
426  null,
427  null,
428  OperandTypes.STRING_STRING,
429  SqlFunctionCategory.SYSTEM);
430  }

Member Function Documentation

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

Definition at line 433 of file HeavyDBSqlOperatorTable.java.

433  {
434  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
435  return typeFactory.createSqlType(SqlTypeName.BIGINT);
436  }

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