OmniSciDB  b24e664e58
 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 51 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 53 of file MapDSqlOperatorTable.java.

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

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