OmniSciDB  f17484ade4
 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 1804 of file HeavyDBParser.java.

Member Function Documentation

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

Definition at line 1822 of file HeavyDBParser.java.

1822  {
1823  try {
1824  this.targetExpression = targetExpression;
1825  node.accept(this);
1826  return false;
1827  } catch (Util.FoundOne e) {
1828  return true;
1829  }
1830  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedAsChildOROperatorChecker.visit ( SqlCall  call)
inline

Definition at line 1807 of file HeavyDBParser.java.

1807  {
1808  if (call instanceof SqlBasicCall) {
1809  SqlBasicCall basicCall = (SqlBasicCall) call;
1810  if (basicCall.getKind() == SqlKind.OR) {
1811  String targetString = targetExpression.toString();
1812  for (SqlNode listedOperand : basicCall.operands) {
1813  if (listedOperand.toString().contains(targetString)) {
1814  throw Util.FoundOne.NULL;
1815  }
1816  }
1817  }
1818  }
1819  return super.visit(call);
1820  }

Member Data Documentation

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

Definition at line 1832 of file HeavyDBParser.java.


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