OmniSciDB  16c4e035a1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Length Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Length:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Length:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Length ()
 

Detailed Description

Definition at line 1442 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1443 of file MapDSqlOperatorTable.java.

1443  {
1444  super("ST_Length",
1445  SqlKind.OTHER_FUNCTION,
1446  null,
1447  null,
1448  OperandTypes.family(SqlTypeFamily.ANY),
1449  SqlFunctionCategory.SYSTEM);
1450  }

Member Function Documentation

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

Definition at line 1453 of file MapDSqlOperatorTable.java.

References DOUBLE.

1453  {
1454  assert opBinding.getOperandCount() == 1;
1455  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1456  return typeFactory.createTypeWithNullability(
1457  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1458  opBinding.getOperandType(0).isNullable());
1459  }
#define DOUBLE

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