OmniSciDB  a5dc49c757
 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 99 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 101 of file HeavyDBSqlOperatorTable.java.

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

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