OmniSciDB  a987f07e93
 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 1507 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1508 of file HeavyDBSqlOperatorTable.java.

1508  {
1509  super("ST_Contains",
1510  SqlKind.OTHER_FUNCTION,
1511  null,
1512  null,
1513  OperandTypes.family(signature()),
1514  SqlFunctionCategory.SYSTEM);
1515  }

Member Function Documentation

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

Definition at line 1518 of file HeavyDBSqlOperatorTable.java.

1518  {
1519  assert opBinding.getOperandCount() == 2;
1520  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1521  return typeFactory.createTypeWithNullability(
1522  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1523  opBinding.getOperandType(0).isNullable()
1524  || opBinding.getOperandType(1).isNullable());
1525  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains.signature ( )
inlinestaticprivate

Definition at line 1527 of file HeavyDBSqlOperatorTable.java.

1527  {
1528  java.util.List<SqlTypeFamily> st_contains_sig =
1529  new java.util.ArrayList<SqlTypeFamily>();
1530  st_contains_sig.add(SqlTypeFamily.ANY);
1531  st_contains_sig.add(SqlTypeFamily.ANY);
1532  return st_contains_sig;
1533  }

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