Class ExprNodeUtilityCompare
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeUtilityCompare
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
deepEquals
(ExprNode[] one, ExprNode[] two, boolean ignoreStreamPrefix) Compares two expression nodes via deep comparison, considering all child nodes of either side.static boolean
deepEquals
(ExprNode nodeOne, ExprNode nodeTwo, boolean ignoreStreamPrefix) Compare two expression nodes and their children in exact child-node sequence, returning true if the 2 expression nodes trees are equals, or false if they are not equals.static boolean
deepEquals
(List<ExprNode> one, List<ExprNode> two) static boolean
deepEqualsIgnoreDupAndOrder
(ExprNode[] setOne, ExprNode[] setTwo) static boolean
deepEqualsIsSubset
(ExprNode[] subset, ExprNode[] superset) static boolean
deepEqualsNullChecked
(ExprNode nodeOne, ExprNode nodeTwo, boolean ignoreStreamPrefix)
-
Constructor Details
-
ExprNodeUtilityCompare
public ExprNodeUtilityCompare()
-
-
Method Details
-
deepEqualsIsSubset
-
deepEqualsIgnoreDupAndOrder
-
deepEquals
Compare two expression nodes and their children in exact child-node sequence, returning true if the 2 expression nodes trees are equals, or false if they are not equals.Recursive call since it uses this method to compare child nodes in the same exact sequence. Nodes are compared using the equalsNode method.
- Parameters:
nodeOne
- - first expression top node of the tree to comparenodeTwo
- - second expression top node of the tree to compareignoreStreamPrefix
- when the equals-comparison can ignore prefix of event properties- Returns:
- false if this or all child nodes are not equal, true if equal
-
deepEqualsNullChecked
-
deepEquals
Compares two expression nodes via deep comparison, considering all child nodes of either side.- Parameters:
one
- array of expressionstwo
- array of expressionsignoreStreamPrefix
- indicator whether we ignore stream prefixes and instead use resolved property name- Returns:
- true if the expressions are equal, false if not
-
deepEquals
-