OmniSciDB  06b3bd477c
 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 286 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 287 of file MapDSqlOperatorTable.java.

287  {
288  super("RAMP",
289  SqlKind.OTHER_FUNCTION,
290  null,
291  null,
292  OperandTypes.NUMERIC,
293  SqlFunctionCategory.USER_DEFINED_FUNCTION);
294  }

Member Function Documentation

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

Definition at line 297 of file MapDSqlOperatorTable.java.

297  {
298  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
299  return typeFactory.builder().add("I", SqlTypeName.INTEGER).build();
300  }

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