Class ConvertEqToIn

java.lang.Object
com.illumon.iris.web.shared.ast.ReplacingVisitor
com.illumon.iris.web.shared.ast.ConvertEqToIn

public class ConvertEqToIn extends ReplacingVisitor
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.