OmniSciDB  4201147b46
 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 1495 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1496 of file HeavyDBSqlOperatorTable.java.

1496  {
1497  super("ST_DWithin",
1498  SqlKind.OTHER_FUNCTION,
1499  null,
1500  null,
1501  OperandTypes.family(signature()),
1502  SqlFunctionCategory.SYSTEM);
1503  }

Member Function Documentation

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

Definition at line 1506 of file HeavyDBSqlOperatorTable.java.

1506  {
1507  assert opBinding.getOperandCount() == 3;
1508  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1509  return typeFactory.createTypeWithNullability(
1510  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1511  opBinding.getOperandType(0).isNullable()
1512  || opBinding.getOperandType(1).isNullable()
1513  || opBinding.getOperandType(2).isNullable());
1514  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 1516 of file HeavyDBSqlOperatorTable.java.

1516  {
1517  java.util.List<SqlTypeFamily> st_dwithin_sig =
1518  new java.util.ArrayList<SqlTypeFamily>();
1519  st_dwithin_sig.add(SqlTypeFamily.ANY);
1520  st_dwithin_sig.add(SqlTypeFamily.ANY);
1521  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
1522  return st_dwithin_sig;
1523  }

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