OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.RampFunction Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.RampFunction:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.RampFunction:

Public Member Functions

 RampFunction ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

"RAMP" user-defined function.

Definition at line 300 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 301 of file MapDSqlOperatorTable.java.

301  {
302  super("RAMP",
303  SqlKind.OTHER_FUNCTION,
304  null,
305  null,
306  OperandTypes.NUMERIC,
307  SqlFunctionCategory.USER_DEFINED_FUNCTION);
308  }

Member Function Documentation

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

Definition at line 311 of file MapDSqlOperatorTable.java.

References generate_TableFunctionsFactory_init.add.

311  {
312  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
313  return typeFactory.builder().add("I", SqlTypeName.INTEGER).build();
314  }

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