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

Member Function Documentation

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

Definition at line 1795 of file HeavyDBParser.java.

1795  {
1796  try {
1797  this.targetExpression = targetExpression;
1798  node.accept(this);
1799  return false;
1800  } catch (Util.FoundOne e) {
1801  return true;
1802  }
1803  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedAsChildOROperatorChecker.visit ( SqlCall  call)
inline

Definition at line 1780 of file HeavyDBParser.java.

1780  {
1781  if (call instanceof SqlBasicCall) {
1782  SqlBasicCall basicCall = (SqlBasicCall) call;
1783  if (basicCall.getKind() == SqlKind.OR) {
1784  String targetString = targetExpression.toString();
1785  for (SqlNode listedOperand : basicCall.operands) {
1786  if (listedOperand.toString().contains(targetString)) {
1787  throw Util.FoundOne.NULL;
1788  }
1789  }
1790  }
1791  }
1792  return super.visit(call);
1793  }

Member Data Documentation

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

Definition at line 1805 of file HeavyDBParser.java.


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