OmniSciDB  085a039ca4
 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 1484 of file HeavyDBParser.java.

Member Function Documentation

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

Definition at line 1500 of file HeavyDBParser.java.

1500  {
1501  try {
1502  this.targetExpression = targetExpression;
1503  node.accept(this);
1504  return false;
1505  } catch (Util.FoundOne e) {
1506  return true;
1507  }
1508  }
Void com.mapd.calcite.parser.HeavyDBParser.ExpressionListedInSelectClauseChecker.visit ( SqlCall  call)
inline

Definition at line 1487 of file HeavyDBParser.java.

1487  {
1488  if (call instanceof SqlSelect) {
1489  SqlSelect selectNode = (SqlSelect) call;
1490  String targetString = targetExpression.toString();
1491  for (SqlNode listedNode : selectNode.getSelectList()) {
1492  if (listedNode.toString().contains(targetString)) {
1493  throw Util.FoundOne.NULL;
1494  }
1495  }
1496  }
1497  return super.visit(call);
1498  }

Member Data Documentation

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

Definition at line 1510 of file HeavyDBParser.java.


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