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

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_DWithin ()
 

Static Private Member Functions

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

Detailed Description

Definition at line 1023 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1024 of file MapDSqlOperatorTable.java.

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

1024  {
1025  super("ST_DWithin",
1026  SqlKind.OTHER_FUNCTION,
1027  null,
1028  null,
1029  OperandTypes.family(signature()),
1030  SqlFunctionCategory.SYSTEM);
1031  }

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 1034 of file MapDSqlOperatorTable.java.

References BOOLEAN.

1034  {
1035  assert opBinding.getOperandCount() == 3;
1036  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1037  return typeFactory.createTypeWithNullability(
1038  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1039  opBinding.getOperandType(0).isNullable()
1040  || opBinding.getOperandType(1).isNullable()
1041  || opBinding.getOperandType(2).isNullable());
1042  }
#define BOOLEAN
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 1044 of file MapDSqlOperatorTable.java.

References ANY, and NUMERIC.

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

1044  {
1045  java.util.List<SqlTypeFamily> st_dwithin_sig =
1046  new java.util.ArrayList<SqlTypeFamily>();
1047  st_dwithin_sig.add(SqlTypeFamily.ANY);
1048  st_dwithin_sig.add(SqlTypeFamily.ANY);
1049  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
1050  return st_dwithin_sig;
1051  }
#define ANY
#define NUMERIC

+ Here is the caller graph for this function:


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