OmniSciDB  04ee39c94c
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 244 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ RampFunction()

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

Definition at line 245 of file MapDSqlOperatorTable.java.

245  {
246  super("RAMP",
247  SqlKind.OTHER_FUNCTION,
248  null,
249  null,
250  OperandTypes.NUMERIC,
251  SqlFunctionCategory.USER_DEFINED_FUNCTION);
252  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 255 of file MapDSqlOperatorTable.java.

255  {
256  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
257  return typeFactory.builder().add("I", SqlTypeName.INTEGER).build();
258  }

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