OmniSciDB  bf83d84833
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 54 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 56 of file MapDSqlOperatorTable.java.

60  {
61  for (SqlOperator operator : this.getOperatorList()) {
62  if (operator.getSyntax() != syntax) {
63  continue;
64  }
65  if (!opName.isSimple()
66  || !nameMatcher.matches(operator.getName(), opName.getSimple())) {
67  continue;
68  }
69  SqlFunctionCategory functionCategory;
70  if (operator instanceof SqlFunction) {
71  functionCategory = ((SqlFunction) operator).getFunctionType();
72  } else {
73  functionCategory = SqlFunctionCategory.SYSTEM;
74  }
75  if (category != functionCategory
76  && category != SqlFunctionCategory.USER_DEFINED_FUNCTION) {
77  continue;
78  }
79  operatorList.add(operator);
80  }
81  }

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