OmniSciDB  addbbd5075
 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 319 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 320 of file MapDSqlOperatorTable.java.

320  {
321  super("MyUDF",
322  SqlKind.OTHER_FUNCTION,
323  null,
324  null,
325  OperandTypes.STRING_STRING,
326  SqlFunctionCategory.SYSTEM);
327  }

Member Function Documentation

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

Definition at line 330 of file MapDSqlOperatorTable.java.

330  {
331  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
332  return typeFactory.createSqlType(SqlTypeName.BIGINT);
333  }

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