OmniSciDB  62f1aeabe6
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 1072 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_Distance()

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

Definition at line 1073 of file MapDSqlOperatorTable.java.

1073  {
1074  super("ST_Distance",
1075  SqlKind.OTHER_FUNCTION,
1076  null,
1077  null,
1078  OperandTypes.family(signature()),
1079  SqlFunctionCategory.SYSTEM);
1080  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1083 of file MapDSqlOperatorTable.java.

1083  {
1084  assert opBinding.getOperandCount() == 2;
1085  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1086  return typeFactory.createTypeWithNullability(
1087  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1088  opBinding.getOperandType(0).isNullable()
1089  || opBinding.getOperandType(1).isNullable());
1090  }

◆ signature()

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

Definition at line 1092 of file MapDSqlOperatorTable.java.

1092  {
1093  java.util.List<SqlTypeFamily> st_distance_sig =
1094  new java.util.ArrayList<SqlTypeFamily>();
1095  st_distance_sig.add(SqlTypeFamily.ANY);
1096  st_distance_sig.add(SqlTypeFamily.ANY);
1097  return st_distance_sig;
1098  }

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