OmniSciDB  a987f07e93
 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 1857 of file HeavyDBParser.java.

Member Function Documentation

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

Definition at line 1869 of file HeavyDBParser.java.

1869  {
1870  try {
1871  targetKind = operatorKind;
1872  node.accept(this);
1873  return false;
1874  } catch (Util.FoundOne e) {
1875  return true;
1876  }
1877  }
Void com.mapd.calcite.parser.HeavyDBParser.FindSqlOperator.visit ( SqlCall  call)
inline

Definition at line 1859 of file HeavyDBParser.java.

1859  {
1860  if (call instanceof SqlBasicCall) {
1861  SqlBasicCall basicCall = (SqlBasicCall) call;
1862  if (basicCall.getKind().equals(targetKind)) {
1863  throw Util.FoundOne.NULL;
1864  }
1865  }
1866  return super.visit(call);
1867  }

Member Data Documentation

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

Definition at line 1879 of file HeavyDBParser.java.


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