OmniSciDB  a5dc49c757
 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 365 of file HeavyDBSqlOperatorTable.java.

Member Function Documentation

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

Definition at line 377 of file HeavyDBSqlOperatorTable.java.

377  {
378  if (callBinding.operands().isEmpty()) {
379  return true;
380  }
381  return super.checkOperandTypes(callBinding, throwOnFailure);
382  }
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.getComponentType ( RelDataTypeFactory  typeFactory,
List< RelDataType >  argTypes 
)
inlineprotected

Definition at line 368 of file HeavyDBSqlOperatorTable.java.

369  {
370  if (argTypes.isEmpty()) {
371  return typeFactory.createSqlType(SqlTypeName.NULL);
372  }
373  return super.getComponentType(typeFactory, argTypes);
374  }

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