OmniSciDB  f632821e96
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 328 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ MyUDFFunction()

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

Definition at line 329 of file MapDSqlOperatorTable.java.

329  {
330  super("MyUDF",
331  SqlKind.OTHER_FUNCTION,
332  null,
333  null,
334  OperandTypes.STRING_STRING,
335  SqlFunctionCategory.SYSTEM);
336  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 339 of file MapDSqlOperatorTable.java.

339  {
340  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
341  return typeFactory.createSqlType(SqlTypeName.BIGINT);
342  }

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