OmniSciDB  f17484ade4
 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 1902 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1903 of file HeavyDBSqlOperatorTable.java.

1903  {
1904  super("ST_DWithin",
1905  SqlKind.OTHER_FUNCTION,
1906  null,
1907  null,
1908  OperandTypes.family(signature()),
1909  SqlFunctionCategory.SYSTEM);
1910  }

Member Function Documentation

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

Definition at line 1913 of file HeavyDBSqlOperatorTable.java.

1913  {
1914  assert opBinding.getOperandCount() == 3;
1915  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1916  return typeFactory.createTypeWithNullability(
1917  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1918  opBinding.getOperandType(0).isNullable()
1919  || opBinding.getOperandType(1).isNullable()
1920  || opBinding.getOperandType(2).isNullable());
1921  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 1923 of file HeavyDBSqlOperatorTable.java.

1923  {
1924  java.util.List<SqlTypeFamily> st_dwithin_sig =
1925  new java.util.ArrayList<SqlTypeFamily>();
1926  st_dwithin_sig.add(SqlTypeFamily.ANY);
1927  st_dwithin_sig.add(SqlTypeFamily.ANY);
1928  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
1929  return st_dwithin_sig;
1930  }

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