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

Constructor & Destructor Documentation

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

Definition at line 2098 of file HeavyDBSqlOperatorTable.java.

2098  {
2099  super("ST_DWithin",
2100  SqlKind.OTHER_FUNCTION,
2101  null,
2102  null,
2103  OperandTypes.family(signature()),
2104  SqlFunctionCategory.SYSTEM);
2105  }

Member Function Documentation

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

Definition at line 2108 of file HeavyDBSqlOperatorTable.java.

2108  {
2109  assert opBinding.getOperandCount() == 3;
2110  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
2111  return typeFactory.createTypeWithNullability(
2112  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
2113  opBinding.getOperandType(0).isNullable()
2114  || opBinding.getOperandType(1).isNullable()
2115  || opBinding.getOperandType(2).isNullable());
2116  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 2118 of file HeavyDBSqlOperatorTable.java.

2118  {
2119  java.util.List<SqlTypeFamily> st_dwithin_sig =
2120  new java.util.ArrayList<SqlTypeFamily>();
2121  st_dwithin_sig.add(SqlTypeFamily.ANY);
2122  st_dwithin_sig.add(SqlTypeFamily.ANY);
2123  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
2124  return st_dwithin_sig;
2125  }

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