OmniSciDB  91042dcc5b
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.MapDParser.ExpressionListedInSelectClauseChecker Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDParser.ExpressionListedInSelectClauseChecker:
+ Collaboration diagram for com.mapd.calcite.parser.MapDParser.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 1453 of file MapDParser.java.

Member Function Documentation

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

Definition at line 1469 of file MapDParser.java.

1469  {
1470  try {
1471  this.targetExpression = targetExpression;
1472  node.accept(this);
1473  return false;
1474  } catch (Util.FoundOne e) {
1475  return true;
1476  }
1477  }
Void com.mapd.calcite.parser.MapDParser.ExpressionListedInSelectClauseChecker.visit ( SqlCall  call)
inline

Definition at line 1456 of file MapDParser.java.

1456  {
1457  if (call instanceof SqlSelect) {
1458  SqlSelect selectNode = (SqlSelect) call;
1459  String targetString = targetExpression.toString();
1460  for (SqlNode listedNode : selectNode.getSelectList()) {
1461  if (listedNode.toString().contains(targetString)) {
1462  throw Util.FoundOne.NULL;
1463  }
1464  }
1465  }
1466  return super.visit(call);
1467  }

Member Data Documentation

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

Definition at line 1479 of file MapDParser.java.


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