OmniSciDB  a987f07e93
 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 1701 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1702 of file HeavyDBSqlOperatorTable.java.

1702  {
1703  super("ST_DWithin",
1704  SqlKind.OTHER_FUNCTION,
1705  null,
1706  null,
1707  OperandTypes.family(signature()),
1708  SqlFunctionCategory.SYSTEM);
1709  }

Member Function Documentation

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

Definition at line 1712 of file HeavyDBSqlOperatorTable.java.

1712  {
1713  assert opBinding.getOperandCount() == 3;
1714  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1715  return typeFactory.createTypeWithNullability(
1716  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1717  opBinding.getOperandType(0).isNullable()
1718  || opBinding.getOperandType(1).isNullable()
1719  || opBinding.getOperandType(2).isNullable());
1720  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 1722 of file HeavyDBSqlOperatorTable.java.

1722  {
1723  java.util.List<SqlTypeFamily> st_dwithin_sig =
1724  new java.util.ArrayList<SqlTypeFamily>();
1725  st_dwithin_sig.add(SqlTypeFamily.ANY);
1726  st_dwithin_sig.add(SqlTypeFamily.ANY);
1727  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
1728  return st_dwithin_sig;
1729  }

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