OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty:

Public Member Functions

boolean checkOperandTypes (SqlCallBinding callBinding, boolean throwOnFailure)
 

Protected Member Functions

RelDataType getComponentType (RelDataTypeFactory typeFactory, List< RelDataType > argTypes)
 

Detailed Description

Definition at line 308 of file HeavyDBSqlOperatorTable.java.

Member Function Documentation

boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.checkOperandTypes ( SqlCallBinding  callBinding,
boolean  throwOnFailure 
)
inline

Definition at line 320 of file HeavyDBSqlOperatorTable.java.

320  {
321  if (callBinding.operands().isEmpty()) {
322  return true;
323  }
324  return super.checkOperandTypes(callBinding, throwOnFailure);
325  }
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.getComponentType ( RelDataTypeFactory  typeFactory,
List< RelDataType >  argTypes 
)
inlineprotected

Definition at line 311 of file HeavyDBSqlOperatorTable.java.

312  {
313  if (argTypes.isEmpty()) {
314  return typeFactory.createSqlType(SqlTypeName.NULL);
315  }
316  return super.getComponentType(typeFactory, argTypes);
317  }

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