OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Within ()
 

Static Private Member Functions

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

Detailed Description

Definition at line 994 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 995 of file MapDSqlOperatorTable.java.

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

995  {
996  super("ST_Within",
997  SqlKind.OTHER_FUNCTION,
998  null,
999  null,
1000  OperandTypes.family(signature()),
1001  SqlFunctionCategory.SYSTEM);
1002  }

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 1005 of file MapDSqlOperatorTable.java.

References BOOLEAN.

1005  {
1006  assert opBinding.getOperandCount() == 2;
1007  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1008  return typeFactory.createTypeWithNullability(
1009  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1010  opBinding.getOperandType(0).isNullable()
1011  || opBinding.getOperandType(1).isNullable());
1012  }
#define BOOLEAN
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Within.signature ( )
inlinestaticprivate

Definition at line 1014 of file MapDSqlOperatorTable.java.

References ANY.

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

1014  {
1015  java.util.List<SqlTypeFamily> st_within_sig =
1016  new java.util.ArrayList<SqlTypeFamily>();
1017  st_within_sig.add(SqlTypeFamily.ANY);
1018  st_within_sig.add(SqlTypeFamily.ANY);
1019  return st_within_sig;
1020  }
#define ANY

+ Here is the caller graph for this function:


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