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

Member Function Documentation

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

Definition at line 351 of file HeavyDBSqlOperatorTable.java.

351  {
352  if (callBinding.operands().isEmpty()) {
353  return true;
354  }
355  return super.checkOperandTypes(callBinding, throwOnFailure);
356  }
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.getComponentType ( RelDataTypeFactory  typeFactory,
List< RelDataType >  argTypes 
)
inlineprotected

Definition at line 342 of file HeavyDBSqlOperatorTable.java.

343  {
344  if (argTypes.isEmpty()) {
345  return typeFactory.createSqlType(SqlTypeName.NULL);
346  }
347  return super.getComponentType(typeFactory, argTypes);
348  }

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