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

Public Member Functions

Void visit (SqlCall call)
 

Package Functions

boolean containsExpression (SqlNode node, SqlNode targetExpression)
 

Package Attributes

SqlNode targetExpression
 

Detailed Description

Definition at line 1748 of file HeavyDBParser.java.

Member Function Documentation

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

Definition at line 1764 of file HeavyDBParser.java.

1764  {
1765  try {
1766  this.targetExpression = targetExpression;
1767  node.accept(this);
1768  return false;
1769  } catch (Util.FoundOne e) {
1770  return true;
1771  }
1772  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedInSelectClauseChecker.visit ( SqlCall  call)
inline

Definition at line 1751 of file HeavyDBParser.java.

1751  {
1752  if (call instanceof SqlSelect) {
1753  SqlSelect selectNode = (SqlSelect) call;
1754  String targetString = targetExpression.toString();
1755  for (SqlNode listedNode : selectNode.getSelectList()) {
1756  if (listedNode.toString().contains(targetString)) {
1757  throw Util.FoundOne.NULL;
1758  }
1759  }
1760  }
1761  return super.visit(call);
1762  }

Member Data Documentation

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

Definition at line 1774 of file HeavyDBParser.java.


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