Package com.illumon.iris.web.shared.ast
Class ConvertEqToIn
java.lang.Object
com.illumon.iris.web.shared.ast.ReplacingVisitor
com.illumon.iris.web.shared.ast.ConvertEqToIn
IN-type expressions are more efficient at runtime than EQUALS, and also compile more quickly. However, they
only work when comparing a column reference to a literal value, so this transformation looks for those and
replaces the EQ-type node with its corresponding IN-type node.
This is sort of the opposite of
ConvertInvalidInExpressions, which converts EQs to INs when the types
of the children are not appropriate for use in a MatchFilter.
Has no apparent pre-requisites.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterDescriptorexecute(FilterDescriptor descriptor) onEqual(FilterDescriptor descriptor) onEqualIgnoreCase(FilterDescriptor descriptor) onNotEqual(FilterDescriptor descriptor) onNotEqualIgnoreCase(FilterDescriptor descriptor) Methods inherited from class com.illumon.iris.web.shared.ast.ReplacingVisitor
onAnd, onContains, onContainsIgnoreCase, onGreaterThan, onGreaterThanOrEqualTo, onIn, onInIgnoreCase, onInvoke, onIsNull, onLessThan, onLessThanOrEqualTo, onLiteral, onNot, onNotIn, onNotInIgnoreCase, onOr, onPattern, onPatternIgnoreCase, onReference, onSearch, visit, visitChildren
-
Constructor Details
-
ConvertEqToIn
public ConvertEqToIn()
-
-
Method Details