OmniSciDB  3a86f6ec37
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Within ()
 

Static Private Member Functions

static java.util.List< SqlTypeFamily > signature ()
 

Detailed Description

Definition at line 1203 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_Within()

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

Definition at line 1204 of file MapDSqlOperatorTable.java.

1204  {
1205  super("ST_Within",
1206  SqlKind.OTHER_FUNCTION,
1207  null,
1208  null,
1209  OperandTypes.family(signature()),
1210  SqlFunctionCategory.SYSTEM);
1211  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1214 of file MapDSqlOperatorTable.java.

1214  {
1215  assert opBinding.getOperandCount() == 2;
1216  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1217  return typeFactory.createTypeWithNullability(
1218  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1219  opBinding.getOperandType(0).isNullable()
1220  || opBinding.getOperandType(1).isNullable());
1221  }

◆ signature()

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

Definition at line 1223 of file MapDSqlOperatorTable.java.

1223  {
1224  java.util.List<SqlTypeFamily> st_within_sig =
1225  new java.util.ArrayList<SqlTypeFamily>();
1226  st_within_sig.add(SqlTypeFamily.ANY);
1227  st_within_sig.add(SqlTypeFamily.ANY);
1228  return st_within_sig;
1229  }

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