OmniSciDB  a5dc49c757
 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 1903 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1904 of file HeavyDBSqlOperatorTable.java.

1904  {
1905  super("ST_Contains",
1906  SqlKind.OTHER_FUNCTION,
1907  null,
1908  null,
1909  OperandTypes.family(signature()),
1910  SqlFunctionCategory.SYSTEM);
1911  }

Member Function Documentation

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

Definition at line 1914 of file HeavyDBSqlOperatorTable.java.

1914  {
1915  assert opBinding.getOperandCount() == 2;
1916  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1917  return typeFactory.createTypeWithNullability(
1918  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1919  opBinding.getOperandType(0).isNullable()
1920  || opBinding.getOperandType(1).isNullable());
1921  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_Contains.signature ( )
inlinestaticprivate

Definition at line 1923 of file HeavyDBSqlOperatorTable.java.

1923  {
1924  java.util.List<SqlTypeFamily> st_contains_sig =
1925  new java.util.ArrayList<SqlTypeFamily>();
1926  st_contains_sig.add(SqlTypeFamily.ANY);
1927  st_contains_sig.add(SqlTypeFamily.ANY);
1928  return st_contains_sig;
1929  }

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