OmniSciDB  a987f07e93
 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 89 of file HeavyDBSqlOperatorTable.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 91 of file HeavyDBSqlOperatorTable.java.

95  {
96  for (SqlOperator operator : this.getOperatorList()) {
97  if (operator.getSyntax() != syntax) {
98  continue;
99  }
100  if (!opName.isSimple()
101  || !nameMatcher.matches(operator.getName(), opName.getSimple())) {
102  continue;
103  }
104  SqlFunctionCategory functionCategory;
105  if (operator instanceof SqlFunction) {
106  functionCategory = ((SqlFunction) operator).getFunctionType();
107  } else {
108  functionCategory = SqlFunctionCategory.SYSTEM;
109  }
110  if (category != functionCategory
111  && category != SqlFunctionCategory.USER_DEFINED_FUNCTION) {
112  continue;
113  }
114  operatorList.add(operator);
115  }
116  }

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