OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Contains ()
 

Static Private Member Functions

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

Detailed Description

Definition at line 1304 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains.ST_Contains ( )
inlinepackage

Definition at line 1305 of file HeavyDBSqlOperatorTable.java.

1305  {
1306  super("ST_Contains",
1307  SqlKind.OTHER_FUNCTION,
1308  null,
1309  null,
1310  OperandTypes.family(signature()),
1311  SqlFunctionCategory.SYSTEM);
1312  }

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 1315 of file HeavyDBSqlOperatorTable.java.

1315  {
1316  assert opBinding.getOperandCount() == 2;
1317  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1318  return typeFactory.createTypeWithNullability(
1319  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1320  opBinding.getOperandType(0).isNullable()
1321  || opBinding.getOperandType(1).isNullable());
1322  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains.signature ( )
inlinestaticprivate

Definition at line 1324 of file HeavyDBSqlOperatorTable.java.

1324  {
1325  java.util.List<SqlTypeFamily> st_contains_sig =
1326  new java.util.ArrayList<SqlTypeFamily>();
1327  st_contains_sig.add(SqlTypeFamily.ANY);
1328  st_contains_sig.add(SqlTypeFamily.ANY);
1329  return st_contains_sig;
1330  }

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