OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 1501 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1502 of file MapDSqlOperatorTable.java.

1502  {
1503  super("ST_SetSRID",
1504  SqlKind.OTHER_FUNCTION,
1505  null,
1506  null,
1507  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER),
1508  SqlFunctionCategory.SYSTEM);
1509  }

Member Function Documentation

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

Definition at line 1512 of file MapDSqlOperatorTable.java.

References INTEGER.

1512  {
1513  assert opBinding.getOperandCount() == 1;
1514  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1515  return typeFactory.createTypeWithNullability(
1516  typeFactory.createSqlType(SqlTypeName.INTEGER),
1517  opBinding.getOperandType(0).isNullable());
1518  }
#define INTEGER

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