OmniSciDB  2e3a973ef4
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 869 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_Contains()

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

Definition at line 870 of file MapDSqlOperatorTable.java.

870  {
871  super("ST_Contains",
872  SqlKind.OTHER_FUNCTION,
873  null,
874  null,
875  OperandTypes.family(signature()),
876  SqlFunctionCategory.SYSTEM);
877  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 880 of file MapDSqlOperatorTable.java.

880  {
881  assert opBinding.getOperandCount() == 2;
882  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
883  return typeFactory.createTypeWithNullability(
884  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
885  opBinding.getOperandType(0).isNullable()
886  || opBinding.getOperandType(1).isNullable());
887  }

◆ signature()

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

Definition at line 889 of file MapDSqlOperatorTable.java.

889  {
890  java.util.List<SqlTypeFamily> st_contains_sig =
891  new java.util.ArrayList<SqlTypeFamily>();
892  st_contains_sig.add(SqlTypeFamily.ANY);
893  st_contains_sig.add(SqlTypeFamily.ANY);
894  return st_contains_sig;
895  }

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