OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.CaseInsensitiveListSqlOperatorTable Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.CaseInsensitiveListSqlOperatorTable:
+ Collaboration diagram for com.mapd.calcite.parser.CaseInsensitiveListSqlOperatorTable:

Public Member Functions

void lookupOperatorOverloads (SqlIdentifier opName, SqlFunctionCategory category, SqlSyntax syntax, List< SqlOperator > operatorList, SqlNameMatcher nameMatcher)
 

Detailed Description

Definition at line 61 of file MapDSqlOperatorTable.java.

Member Function Documentation

void com.mapd.calcite.parser.CaseInsensitiveListSqlOperatorTable.lookupOperatorOverloads ( SqlIdentifier  opName,
SqlFunctionCategory  category,
SqlSyntax  syntax,
List< SqlOperator >  operatorList,
SqlNameMatcher  nameMatcher 
)
inline

Definition at line 63 of file MapDSqlOperatorTable.java.

67  {
68  for (SqlOperator operator : this.getOperatorList()) {
69  if (operator.getSyntax() != syntax) {
70  continue;
71  }
72  if (!opName.isSimple()
73  || !nameMatcher.matches(operator.getName(), opName.getSimple())) {
74  continue;
75  }
76  SqlFunctionCategory functionCategory;
77  if (operator instanceof SqlFunction) {
78  functionCategory = ((SqlFunction) operator).getFunctionType();
79  } else {
80  functionCategory = SqlFunctionCategory.SYSTEM;
81  }
82  if (category != functionCategory
83  && category != SqlFunctionCategory.USER_DEFINED_FUNCTION) {
84  continue;
85  }
86  operatorList.add(operator);
87  }
88  }

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