OmniSciDB  3a86f6ec37
com.mapd.calcite.parser.MapDSqlOperatorTable.RowCopier Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.RowCopier:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.RowCopier:

Public Member Functions

 RowCopier ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Table-level functions

Definition at line 362 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ RowCopier()

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

Definition at line 363 of file MapDSqlOperatorTable.java.

363  {
364  super("ROW_COPIER",
365  SqlKind.OTHER_FUNCTION,
366  null,
367  null,
368  OperandTypes.family(signature()),
369  SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION);
370  }
static java.util.List< SqlTypeFamily > signature()

Member Function Documentation

◆ inferReturnType()

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

Definition at line 373 of file MapDSqlOperatorTable.java.

373  {
374  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
375  java.util.List<RelDataType> typeList = new java.util.ArrayList<RelDataType>();
376  java.util.List<java.lang.String> fieldNameList =
377  new java.util.ArrayList<java.lang.String>();
378  fieldNameList.add("out0");
379  typeList.add(typeFactory.createSqlType(SqlTypeName.DOUBLE));
380  return typeFactory.createStructType(typeList, fieldNameList);
381  }

◆ signature()

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.RowCopier.signature ( )
inlinestaticprivate

Definition at line 383 of file MapDSqlOperatorTable.java.

383  {
384  java.util.List<SqlTypeFamily> sig_family = new java.util.ArrayList<SqlTypeFamily>();
385  sig_family.add(SqlTypeFamily.CURSOR);
386  sig_family.add(SqlTypeFamily.ANY);
387  return sig_family;
388  }

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