OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 347 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 348 of file MapDSqlOperatorTable.java.

348  {
349  super("MyUDF",
350  SqlKind.OTHER_FUNCTION,
351  null,
352  null,
353  OperandTypes.STRING_STRING,
354  SqlFunctionCategory.SYSTEM);
355  }

Member Function Documentation

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

Definition at line 358 of file MapDSqlOperatorTable.java.

References BIGINT.

358  {
359  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
360  return typeFactory.createSqlType(SqlTypeName.BIGINT);
361  }
#define BIGINT

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