OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Contains Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Contains:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.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 855 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 856 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Contains.signature().

856  {
857  super("ST_Contains",
858  SqlKind.OTHER_FUNCTION,
859  null,
860  null,
861  OperandTypes.family(signature()),
862  SqlFunctionCategory.SYSTEM);
863  }

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 866 of file MapDSqlOperatorTable.java.

References BOOLEAN.

866  {
867  assert opBinding.getOperandCount() == 2;
868  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
869  return typeFactory.createTypeWithNullability(
870  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
871  opBinding.getOperandType(0).isNullable()
872  || opBinding.getOperandType(1).isNullable());
873  }
#define BOOLEAN
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Contains.signature ( )
inlinestaticprivate

Definition at line 875 of file MapDSqlOperatorTable.java.

References ANY.

Referenced by com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Contains.ST_Contains().

875  {
876  java.util.List<SqlTypeFamily> st_contains_sig =
877  new java.util.ArrayList<SqlTypeFamily>();
878  st_contains_sig.add(SqlTypeFamily.ANY);
879  st_contains_sig.add(SqlTypeFamily.ANY);
880  return st_contains_sig;
881  }
#define ANY

+ Here is the caller graph for this function:


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