OmniSciDB  29e35f4d58
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 53 of file MapDSqlOperatorTable.java.

Member Function Documentation

◆ lookupOperatorOverloads()

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

Definition at line 55 of file MapDSqlOperatorTable.java.

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

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