OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Distance ()
 

Static Private Member Functions

static java.util.List
< SqlTypeFamily > 
signature ()
 

Detailed Description

Definition at line 1560 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance.ST_Distance ( )
inlinepackage

Definition at line 1561 of file HeavyDBSqlOperatorTable.java.

1561  {
1562  super("ST_Distance",
1563  SqlKind.OTHER_FUNCTION,
1564  null,
1565  null,
1566  OperandTypes.family(signature()),
1567  SqlFunctionCategory.SYSTEM);
1568  }

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 1571 of file HeavyDBSqlOperatorTable.java.

1571  {
1572  assert opBinding.getOperandCount() == 2;
1573  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1574  return typeFactory.createTypeWithNullability(
1575  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1576  opBinding.getOperandType(0).isNullable()
1577  || opBinding.getOperandType(1).isNullable());
1578  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 1580 of file HeavyDBSqlOperatorTable.java.

1580  {
1581  java.util.List<SqlTypeFamily> st_distance_sig =
1582  new java.util.ArrayList<SqlTypeFamily>();
1583  st_distance_sig.add(SqlTypeFamily.ANY);
1584  st_distance_sig.add(SqlTypeFamily.ANY);
1585  return st_distance_sig;
1586  }

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