OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.RowAddSub Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.RowAddSub:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.RowAddSub:

Public Member Functions

 RowAddSub ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

static java.util.List
< SqlTypeFamily > 
signature ()
 

Detailed Description

Definition at line 414 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 415 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.RowAddSub.signature().

415  {
416  super("ROW_ADDSUB",
417  SqlKind.OTHER_FUNCTION,
418  null,
419  null,
420  OperandTypes.family(signature()),
421  SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION);
422  }
static java.util.List< SqlTypeFamily > signature()

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 425 of file MapDSqlOperatorTable.java.

425  {
426  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
427  java.util.List<RelDataType> typeList = new java.util.ArrayList<RelDataType>();
428  java.util.List<java.lang.String> fieldNameList =
429  new java.util.ArrayList<java.lang.String>();
430  fieldNameList.add("out_add");
431  fieldNameList.add("out_sub");
432  typeList.add(typeFactory.createSqlType(SqlTypeName.DOUBLE));
433  typeList.add(typeFactory.createSqlType(SqlTypeName.DOUBLE));
434  return typeFactory.createStructType(typeList, fieldNameList);
435  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.RowAddSub.signature ( )
inlinestaticprivate

Definition at line 437 of file MapDSqlOperatorTable.java.

Referenced by com.mapd.calcite.parser.MapDSqlOperatorTable.RowAddSub.RowAddSub().

437  {
438  java.util.List<SqlTypeFamily> sig_family = new java.util.ArrayList<SqlTypeFamily>();
439  sig_family.add(SqlTypeFamily.INTEGER);
440  sig_family.add(SqlTypeFamily.CURSOR);
441  return sig_family;
442  }

+ Here is the caller graph for this function:


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