OmniSciDB  72c90bc290
 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 1956 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1957 of file HeavyDBSqlOperatorTable.java.

1957  {
1958  super("ST_DWithin",
1959  SqlKind.OTHER_FUNCTION,
1960  null,
1961  null,
1962  OperandTypes.family(signature()),
1963  SqlFunctionCategory.SYSTEM);
1964  }

Member Function Documentation

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

Definition at line 1967 of file HeavyDBSqlOperatorTable.java.

1967  {
1968  assert opBinding.getOperandCount() == 3;
1969  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1970  return typeFactory.createTypeWithNullability(
1971  typeFactory.createSqlType(SqlTypeName.BOOLEAN),
1972  opBinding.getOperandType(0).isNullable()
1973  || opBinding.getOperandType(1).isNullable()
1974  || opBinding.getOperandType(2).isNullable());
1975  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ST_DWithin.signature ( )
inlinestaticprivate

Definition at line 1977 of file HeavyDBSqlOperatorTable.java.

1977  {
1978  java.util.List<SqlTypeFamily> st_dwithin_sig =
1979  new java.util.ArrayList<SqlTypeFamily>();
1980  st_dwithin_sig.add(SqlTypeFamily.ANY);
1981  st_dwithin_sig.add(SqlTypeFamily.ANY);
1982  st_dwithin_sig.add(SqlTypeFamily.NUMERIC);
1983  return st_dwithin_sig;
1984  }

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