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

Public Member Functions

Void visit (SqlCall call)
 

Package Functions

boolean containsExpression (SqlNode node, SqlNode targetExpression)
 

Package Attributes

SqlNode targetExpression
 

Detailed Description

Definition at line 1513 of file HeavyDBParser.java.

Member Function Documentation

boolean com.mapd.calcite.parser.HeavyDBParser.ExpressionListedAsChildOROperatorChecker.containsExpression ( SqlNode  node,
SqlNode  targetExpression 
)
inlinepackage

Definition at line 1531 of file HeavyDBParser.java.

1531  {
1532  try {
1533  this.targetExpression = targetExpression;
1534  node.accept(this);
1535  return false;
1536  } catch (Util.FoundOne e) {
1537  return true;
1538  }
1539  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedAsChildOROperatorChecker.visit ( SqlCall  call)
inline

Definition at line 1516 of file HeavyDBParser.java.

1516  {
1517  if (call instanceof SqlBasicCall) {
1518  SqlBasicCall basicCall = (SqlBasicCall) call;
1519  if (basicCall.getKind() == SqlKind.OR) {
1520  String targetString = targetExpression.toString();
1521  for (SqlNode listedOperand : basicCall.operands) {
1522  if (listedOperand.toString().contains(targetString)) {
1523  throw Util.FoundOne.NULL;
1524  }
1525  }
1526  }
1527  }
1528  return super.visit(call);
1529  }

Member Data Documentation

SqlNode com.mapd.calcite.parser.HeavyDBParser.ExpressionListedAsChildOROperatorChecker.targetExpression
package

Definition at line 1541 of file HeavyDBParser.java.


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