OmniSciDB  e4d26eaa36
com.mapd.calcite.parser.MapDSqlOperatorTable.DeviceSelectionUdtfGpu Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.DeviceSelectionUdtfGpu:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.DeviceSelectionUdtfGpu:

Public Member Functions

 DeviceSelectionUdtfGpu ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 537 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ DeviceSelectionUdtfGpu()

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

Definition at line 538 of file MapDSqlOperatorTable.java.

538  {
539  super("CT_DEVICE_SELECTION_UDTF_GPU",
540  SqlKind.OTHER_FUNCTION,
541  null,
542  null,
543  OperandTypes.family(signature()),
544  SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION);
545  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 548 of file MapDSqlOperatorTable.java.

548  {
549  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
550  java.util.List<RelDataType> typeList = new java.util.ArrayList<RelDataType>();
551  java.util.List<java.lang.String> fieldNameList =
552  new java.util.ArrayList<java.lang.String>();
553  fieldNameList.add("out0");
554  typeList.add(typeFactory.createSqlType(SqlTypeName.INTEGER));
555  return typeFactory.createStructType(typeList, fieldNameList);
556  }

◆ signature()

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

Definition at line 558 of file MapDSqlOperatorTable.java.

558  {
559  java.util.List<SqlTypeFamily> sig_family = new java.util.ArrayList<SqlTypeFamily>();
560  sig_family.add(SqlTypeFamily.CURSOR);
561  return sig_family;
562  }

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