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

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Perimeter ()
 

Detailed Description

Definition at line 1492 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_Perimeter()

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

Definition at line 1493 of file MapDSqlOperatorTable.java.

1493  {
1494  super("ST_Perimeter",
1495  SqlKind.OTHER_FUNCTION,
1496  null,
1497  null,
1498  OperandTypes.family(SqlTypeFamily.ANY),
1499  SqlFunctionCategory.SYSTEM);
1500  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1503 of file MapDSqlOperatorTable.java.

1503  {
1504  assert opBinding.getOperandCount() == 1;
1505  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1506  return typeFactory.createTypeWithNullability(
1507  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1508  opBinding.getOperandType(0).isNullable());
1509  }

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