OmniSciDB  a987f07e93
 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 1763 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1764 of file HeavyDBSqlOperatorTable.java.

1764  {
1765  super("ST_Distance",
1766  SqlKind.OTHER_FUNCTION,
1767  null,
1768  null,
1769  OperandTypes.family(signature()),
1770  SqlFunctionCategory.SYSTEM);
1771  }

Member Function Documentation

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

Definition at line 1774 of file HeavyDBSqlOperatorTable.java.

1774  {
1775  assert opBinding.getOperandCount() == 2;
1776  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1777  return typeFactory.createTypeWithNullability(
1778  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1779  opBinding.getOperandType(0).isNullable()
1780  || opBinding.getOperandType(1).isNullable());
1781  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 1783 of file HeavyDBSqlOperatorTable.java.

1783  {
1784  java.util.List<SqlTypeFamily> st_distance_sig =
1785  new java.util.ArrayList<SqlTypeFamily>();
1786  st_distance_sig.add(SqlTypeFamily.ANY);
1787  st_distance_sig.add(SqlTypeFamily.ANY);
1788  return st_distance_sig;
1789  }

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