OmniSciDB  dfae7c3b14
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 1176 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_Distance()

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

Definition at line 1177 of file MapDSqlOperatorTable.java.

1177  {
1178  super("ST_Distance",
1179  SqlKind.OTHER_FUNCTION,
1180  null,
1181  null,
1182  OperandTypes.family(signature()),
1183  SqlFunctionCategory.SYSTEM);
1184  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1187 of file MapDSqlOperatorTable.java.

1187  {
1188  assert opBinding.getOperandCount() == 2;
1189  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1190  return typeFactory.createTypeWithNullability(
1191  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1192  opBinding.getOperandType(0).isNullable()
1193  || opBinding.getOperandType(1).isNullable());
1194  }

◆ signature()

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 1196 of file MapDSqlOperatorTable.java.

1196  {
1197  java.util.List<SqlTypeFamily> st_distance_sig =
1198  new java.util.ArrayList<SqlTypeFamily>();
1199  st_distance_sig.add(SqlTypeFamily.ANY);
1200  st_distance_sig.add(SqlTypeFamily.ANY);
1201  return st_distance_sig;
1202  }

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