OmniSciDB  dfae7c3b14
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_SetSRID Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_SetSRID:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_SetSRID:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_SetSRID ()
 

Detailed Description

Definition at line 1592 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_SetSRID()

com.mapd.calcite.parser.MapDSqlOperatorTable.ST_SetSRID.ST_SetSRID ( )
inlinepackage

Definition at line 1593 of file MapDSqlOperatorTable.java.

1593  {
1594  super("ST_SetSRID",
1595  SqlKind.OTHER_FUNCTION,
1596  null,
1597  null,
1598  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER),
1599  SqlFunctionCategory.SYSTEM);
1600  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1603 of file MapDSqlOperatorTable.java.

1603  {
1604  assert opBinding.getOperandCount() == 1;
1605  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1606  return typeFactory.createTypeWithNullability(
1607  typeFactory.createSqlType(SqlTypeName.INTEGER),
1608  opBinding.getOperandType(0).isNullable());
1609  }

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