OmniSciDB  a5dc49c757
 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 2159 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 2160 of file HeavyDBSqlOperatorTable.java.

2160  {
2161  super("ST_Distance",
2162  SqlKind.OTHER_FUNCTION,
2163  null,
2164  null,
2165  OperandTypes.family(signature()),
2166  SqlFunctionCategory.SYSTEM);
2167  }

Member Function Documentation

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

Definition at line 2170 of file HeavyDBSqlOperatorTable.java.

2170  {
2171  assert opBinding.getOperandCount() == 2;
2172  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
2173  return typeFactory.createTypeWithNullability(
2174  typeFactory.createSqlType(SqlTypeName.DOUBLE),
2175  opBinding.getOperandType(0).isNullable()
2176  || opBinding.getOperandType(1).isNullable());
2177  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 2179 of file HeavyDBSqlOperatorTable.java.

2179  {
2180  java.util.List<SqlTypeFamily> st_distance_sig =
2181  new java.util.ArrayList<SqlTypeFamily>();
2182  st_distance_sig.add(SqlTypeFamily.ANY);
2183  st_distance_sig.add(SqlTypeFamily.ANY);
2184  return st_distance_sig;
2185  }

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