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

Constructor & Destructor Documentation

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

Definition at line 1591 of file MapDSqlOperatorTable.java.

1591  {
1592  super("ST_Length",
1593  SqlKind.OTHER_FUNCTION,
1594  null,
1595  null,
1596  OperandTypes.family(SqlTypeFamily.ANY),
1597  SqlFunctionCategory.SYSTEM);
1598  }

Member Function Documentation

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

Definition at line 1601 of file MapDSqlOperatorTable.java.

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

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