OmniSciDB  bf83d84833
 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 1294 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1295 of file MapDSqlOperatorTable.java.

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

1295  {
1296  super("ST_Distance",
1297  SqlKind.OTHER_FUNCTION,
1298  null,
1299  null,
1300  OperandTypes.family(signature()),
1301  SqlFunctionCategory.SYSTEM);
1302  }

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

1305  {
1306  assert opBinding.getOperandCount() == 2;
1307  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1308  return typeFactory.createTypeWithNullability(
1309  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1310  opBinding.getOperandType(0).isNullable()
1311  || opBinding.getOperandType(1).isNullable());
1312  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 1314 of file MapDSqlOperatorTable.java.

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

1314  {
1315  java.util.List<SqlTypeFamily> st_distance_sig =
1316  new java.util.ArrayList<SqlTypeFamily>();
1317  st_distance_sig.add(SqlTypeFamily.ANY);
1318  st_distance_sig.add(SqlTypeFamily.ANY);
1319  return st_distance_sig;
1320  }

+ Here is the caller graph for this function:


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