OmniSciDB  c1a53651b2
 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 1714 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1715 of file HeavyDBSqlOperatorTable.java.

1715  {
1716  super("ST_DWithin",
1717  SqlKind.OTHER_FUNCTION,
1718  null,
1719  null,
1720  OperandTypes.family(signature()),
1721  SqlFunctionCategory.SYSTEM);
1722  }

Member Function Documentation

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

Definition at line 1725 of file HeavyDBSqlOperatorTable.java.

1725  {
1726  assert opBinding.getOperandCount() == 3;
1727  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1728  return typeFactory.createTypeWithNullability(
1729  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1730  opBinding.getOperandType(0).isNullable()
1731  || opBinding.getOperandType(1).isNullable()
1732  || opBinding.getOperandType(2).isNullable());
1733  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 1735 of file HeavyDBSqlOperatorTable.java.

1735  {
1736  java.util.List<SqlTypeFamily> st_dwithin_sig =
1737  new java.util.ArrayList<SqlTypeFamily>();
1738  st_dwithin_sig.add(SqlTypeFamily.ANY);
1739  st_dwithin_sig.add(SqlTypeFamily.ANY);
1740  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
1741  return st_dwithin_sig;
1742  }

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