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

Member Function Documentation

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

Definition at line 1801 of file HeavyDBParser.java.

1801  {
1802  try {
1803  this.targetExpression = targetExpression;
1804  node.accept(this);
1805  return false;
1806  } catch (Util.FoundOne e) {
1807  return true;
1808  }
1809  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedInSelectClauseChecker.visit ( SqlCall  call)
inline

Definition at line 1788 of file HeavyDBParser.java.

1788  {
1789  if (call instanceof SqlSelect) {
1790  SqlSelect selectNode = (SqlSelect) call;
1791  String targetString = targetExpression.toString();
1792  for (SqlNode listedNode : selectNode.getSelectList()) {
1793  if (listedNode.toString().contains(targetString)) {
1794  throw Util.FoundOne.NULL;
1795  }
1796  }
1797  }
1798  return super.visit(call);
1799  }

Member Data Documentation

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

Definition at line 1811 of file HeavyDBParser.java.


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