OmniSciDB  72c90bc290
 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 98 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 100 of file HeavyDBSqlOperatorTable.java.

104  {
105  for (SqlOperator operator : this.getOperatorList()) {
106  if (operator.getSyntax() != syntax) {
107  continue;
108  }
109  if (!opName.isSimple()
110  || !nameMatcher.matches(operator.getName(), opName.getSimple())) {
111  continue;
112  }
113  SqlFunctionCategory functionCategory;
114  if (operator instanceof SqlFunction) {
115  functionCategory = ((SqlFunction) operator).getFunctionType();
116  } else {
117  functionCategory = SqlFunctionCategory.SYSTEM;
118  }
119  if (category != functionCategory
120  && category != SqlFunctionCategory.USER_DEFINED_FUNCTION) {
121  continue;
122  }
123  operatorList.add(operator);
124  }
125  }

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