OmniSciDB  29e35f4d58
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 278 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ RampFunction()

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

Definition at line 279 of file MapDSqlOperatorTable.java.

279  {
280  super("RAMP",
281  SqlKind.OTHER_FUNCTION,
282  null,
283  null,
284  OperandTypes.NUMERIC,
285  SqlFunctionCategory.USER_DEFINED_FUNCTION);
286  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 289 of file MapDSqlOperatorTable.java.

289  {
290  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
291  return typeFactory.builder().add("I", SqlTypeName.INTEGER).build();
292  }

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