OmniSciDB  a5dc49c757
 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 1894 of file HeavyDBParser.java.

Member Function Documentation

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

Definition at line 1906 of file HeavyDBParser.java.

1906  {
1907  try {
1908  targetKind = operatorKind;
1909  node.accept(this);
1910  return false;
1911  } catch (Util.FoundOne e) {
1912  return true;
1913  }
1914  }
Void com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator.visit ( SqlCall  call)
inline

Definition at line 1896 of file HeavyDBParser.java.

1896  {
1897  if (call instanceof SqlBasicCall) {
1898  SqlBasicCall basicCall = (SqlBasicCall) call;
1899  if (basicCall.getKind().equals(targetKind)) {
1900  throw Util.FoundOne.NULL;
1901  }
1902  }
1903  return super.visit(call);
1904  }

Member Data Documentation

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

Definition at line 1916 of file HeavyDBParser.java.


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