OmniSciDB  04ee39c94c
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 49 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 51 of file MapDSqlOperatorTable.java.

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

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