OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 306 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 307 of file MapDSqlOperatorTable.java.

307  {
308  super("RAMP",
309  SqlKind.OTHER_FUNCTION,
310  null,
311  null,
312  OperandTypes.NUMERIC,
313  SqlFunctionCategory.USER_DEFINED_FUNCTION);
314  }

Member Function Documentation

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

Definition at line 317 of file MapDSqlOperatorTable.java.

317  {
318  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
319  return typeFactory.builder().add("I", SqlTypeName.INTEGER).build();
320  }

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