OmniSciDB  a5dc49c757
 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 1814 of file HeavyDBParser.java.

Member Function Documentation

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

Definition at line 1832 of file HeavyDBParser.java.

1832  {
1833  try {
1834  this.targetExpression = targetExpression;
1835  node.accept(this);
1836  return false;
1837  } catch (Util.FoundOne e) {
1838  return true;
1839  }
1840  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedAsChildOROperatorChecker.visit ( SqlCall  call)
inline

Definition at line 1817 of file HeavyDBParser.java.

1817  {
1818  if (call instanceof SqlBasicCall) {
1819  SqlBasicCall basicCall = (SqlBasicCall) call;
1820  if (basicCall.getKind() == SqlKind.OR) {
1821  String targetString = targetExpression.toString();
1822  for (SqlNode listedOperand : basicCall.operands) {
1823  if (listedOperand.toString().contains(targetString)) {
1824  throw Util.FoundOne.NULL;
1825  }
1826  }
1827  }
1828  }
1829  return super.visit(call);
1830  }

Member Data Documentation

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

Definition at line 1842 of file HeavyDBParser.java.


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