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

Public Member Functions

 RowAdder ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 385 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 386 of file MapDSqlOperatorTable.java.

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

386  {
387  super("ROW_ADDER",
388  SqlKind.OTHER_FUNCTION,
389  null,
390  null,
391  OperandTypes.family(signature()),
392  SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION);
393  }
static java.util.List< SqlTypeFamily > signature()

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 396 of file MapDSqlOperatorTable.java.

396  {
397  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
398  java.util.List<RelDataType> typeList = new java.util.ArrayList<RelDataType>();
399  java.util.List<java.lang.String> fieldNameList =
400  new java.util.ArrayList<java.lang.String>();
401  fieldNameList.add("out_add");
402  typeList.add(typeFactory.createSqlType(SqlTypeName.DOUBLE));
403  return typeFactory.createStructType(typeList, fieldNameList);
404  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.RowAdder.signature ( )
inlinestaticprivate

Definition at line 406 of file MapDSqlOperatorTable.java.

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

406  {
407  java.util.List<SqlTypeFamily> sig_family = new java.util.ArrayList<SqlTypeFamily>();
408  sig_family.add(SqlTypeFamily.INTEGER);
409  sig_family.add(SqlTypeFamily.CURSOR);
410  return sig_family;
411  }

+ Here is the caller graph for this function:


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