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

Constructor & Destructor Documentation

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

Definition at line 1086 of file MapDSqlOperatorTable.java.

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

1086  {
1087  super("ST_Distance",
1088  SqlKind.OTHER_FUNCTION,
1089  null,
1090  null,
1091  OperandTypes.family(signature()),
1092  SqlFunctionCategory.SYSTEM);
1093  }

+ 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 1096 of file MapDSqlOperatorTable.java.

References DOUBLE.

1096  {
1097  assert opBinding.getOperandCount() == 2;
1098  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1099  return typeFactory.createTypeWithNullability(
1100  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1101  opBinding.getOperandType(0).isNullable()
1102  || opBinding.getOperandType(1).isNullable());
1103  }
#define DOUBLE
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 1105 of file MapDSqlOperatorTable.java.

References ANY.

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

1105  {
1106  java.util.List<SqlTypeFamily> st_distance_sig =
1107  new java.util.ArrayList<SqlTypeFamily>();
1108  st_distance_sig.add(SqlTypeFamily.ANY);
1109  st_distance_sig.add(SqlTypeFamily.ANY);
1110  return st_distance_sig;
1111  }
#define ANY

+ Here is the caller graph for this function:


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