OmniSciDB  91042dcc5b
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.MapDParser.FindSqlOperator Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDParser.FindSqlOperator:
+ Collaboration diagram for com.mapd.calcite.parser.MapDParser.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 1516 of file MapDParser.java.

Member Function Documentation

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

Definition at line 1528 of file MapDParser.java.

1528  {
1529  try {
1530  targetKind = operatorKind;
1531  node.accept(this);
1532  return false;
1533  } catch (Util.FoundOne e) {
1534  return true;
1535  }
1536  }
Void com.mapd.calcite.parser.MapDParser.FindSqlOperator.visit ( SqlCall  call)
inline

Definition at line 1518 of file MapDParser.java.

1518  {
1519  if (call instanceof SqlBasicCall) {
1520  SqlBasicCall basicCall = (SqlBasicCall) call;
1521  if (basicCall.getKind().equals(targetKind)) {
1522  throw Util.FoundOne.NULL;
1523  }
1524  }
1525  return super.visit(call);
1526  }

Member Data Documentation

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

Definition at line 1537 of file MapDParser.java.


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