OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.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 1145 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1146 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.signature().

1146  {
1147  super("ST_Distance",
1148  SqlKind.OTHER_FUNCTION,
1149  null,
1150  null,
1151  OperandTypes.family(signature()),
1152  SqlFunctionCategory.SYSTEM);
1153  }

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 1156 of file MapDSqlOperatorTable.java.

References DOUBLE.

1156  {
1157  assert opBinding.getOperandCount() == 2;
1158  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1159  return typeFactory.createTypeWithNullability(
1160  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1161  opBinding.getOperandType(0).isNullable()
1162  || opBinding.getOperandType(1).isNullable());
1163  }
#define DOUBLE
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 1165 of file MapDSqlOperatorTable.java.

References ANY.

Referenced by com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.ST_Distance().

1165  {
1166  java.util.List<SqlTypeFamily> st_distance_sig =
1167  new java.util.ArrayList<SqlTypeFamily>();
1168  st_distance_sig.add(SqlTypeFamily.ANY);
1169  st_distance_sig.add(SqlTypeFamily.ANY);
1170  return st_distance_sig;
1171  }
#define ANY

+ Here is the caller graph for this function:


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