OmniSciDB  dfae7c3b14
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 295 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ RampFunction()

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

Definition at line 296 of file MapDSqlOperatorTable.java.

296  {
297  super("RAMP",
298  SqlKind.OTHER_FUNCTION,
299  null,
300  null,
301  OperandTypes.NUMERIC,
302  SqlFunctionCategory.USER_DEFINED_FUNCTION);
303  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 306 of file MapDSqlOperatorTable.java.

306  {
307  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
308  return typeFactory.builder().add("I", SqlTypeName.INTEGER).build();
309  }

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