public class ReconCompMatchesFoundExpression extends ReconExpression
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
matchesFoundOperators |
compiled, expressionTag, infixTokens, reconInfo, rootNode, TOKEN_CONSTANT, TOKEN_DATASET1_FIELD, TOKEN_DATASET2_FIELD, TOKEN_HIGHEST_VALUE, TOKEN_INVALID, TOKEN_LEFT_PARENTHESIS, TOKEN_LOWEST_VALUE, TOKEN_OPERATOR, TOKEN_RIGHT_PARENTHESIS, TOKEN_VALUE, validOperators
Constructor and Description |
---|
ReconCompMatchesFoundExpression(ReconInfo reconInfo) |
Modifier and Type | Method and Description |
---|---|
ReconCompResult |
evaluateExpression(ComparisonQueryHelper queries)
Evaluates the expression, compiling it first if needed.
|
protected ReconCompResult |
evaluateExpressionTree(BinaryTreeNode root,
ComparisonQueryHelper queries)
Traverse the binary tree using a recursive algorithm
|
protected void |
readClause(MboRemote clause) |
addExpressionToken, addExpressionToken, compileExpression, convertInfixToExpressionTree, convertTreeToInfixString, findOperator, getAndOrAttributeName, getAttributeSet, getAttributeToUnitMap, getCloseParentheses, getCompiledExpressionAsString, getExpressionTag, getExpressionTag, getOpenParentheses, getSequenceNum, handleLogicalAnd, handleLogicalOperator, handleLogicalOr, popLinkPush, prepareAttributeIndexes, processInfixExpression, processOperatorToken, processRightParenthesisToken, readExpression, readExpression, reset, setExpressionTag, walkTreeReplaceAttributeNamesWithIndexes, walkTreeToGetAttribSet, walkTreeToGetAttribToUnitMap
public ReconCompMatchesFoundExpression(ReconInfo reconInfo)
protected void readClause(MboRemote clause) throws MXException, java.rmi.RemoteException
readClause
in class ReconExpression
MXException
java.rmi.RemoteException
public ReconCompResult evaluateExpression(ComparisonQueryHelper queries) throws MXException, java.rmi.RemoteException, java.sql.SQLException
MXException
java.rmi.RemoteException
java.sql.SQLException
protected ReconCompResult evaluateExpressionTree(BinaryTreeNode root, ComparisonQueryHelper queries) throws MXException, java.rmi.RemoteException, java.sql.SQLException
The pseudocode is
if ( [current node contains an operator] )
x = evaluateTree(root.left_child);
y = evaluateTree(root.right_child);
[Perform operation on x and y, specified by the operator and store result in z]
return z;
else
error!;
if (root != null)
MXException
java.rmi.RemoteException
java.sql.SQLException