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

Member Function Documentation

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

Definition at line 1500 of file MapDParser.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.MapDParser.ExpressionListedAsChildOROperatorChecker.visit ( SqlCall  call)
inline

Definition at line 1485 of file MapDParser.java.

References OR.

1485  {
1486  if (call instanceof SqlBasicCall) {
1487  SqlBasicCall basicCall = (SqlBasicCall) call;
1488  if (basicCall.getKind() == SqlKind.OR) {
1489  String targetString = targetExpression.toString();
1490  for (SqlNode listedOperand : basicCall.operands) {
1491  if (listedOperand.toString().contains(targetString)) {
1492  throw Util.FoundOne.NULL;
1493  }
1494  }
1495  }
1496  }
1497  return super.visit(call);
1498  }
#define OR

Member Data Documentation

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

Definition at line 1510 of file MapDParser.java.


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