OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator:

Public Member Functions

Void visit (SqlCall call)
 

Package Functions

boolean containsSqlOperator (SqlNode node, SqlKind operatorKind)
 

Private Attributes

SqlKind targetKind
 

Detailed Description

Definition at line 1591 of file HeavyDBParser.java.

Member Function Documentation

boolean com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator.containsSqlOperator ( SqlNode  node,
SqlKind  operatorKind 
)
inlinepackage

Definition at line 1603 of file HeavyDBParser.java.

1603  {
1604  try {
1605  targetKind = operatorKind;
1606  node.accept(this);
1607  return false;
1608  } catch (Util.FoundOne e) {
1609  return true;
1610  }
1611  }
Void com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator.visit ( SqlCall  call)
inline

Definition at line 1593 of file HeavyDBParser.java.

1593  {
1594  if (call instanceof SqlBasicCall) {
1595  SqlBasicCall basicCall = (SqlBasicCall) call;
1596  if (basicCall.getKind().equals(targetKind)) {
1597  throw Util.FoundOne.NULL;
1598  }
1599  }
1600  return super.visit(call);
1601  }

Member Data Documentation

SqlKind com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator.targetKind
private

Definition at line 1613 of file HeavyDBParser.java.


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