Skip to content

PredicateHelper

isLikelySelective

isLikelySelective(
  e: Expression): Boolean

isLikelySelective is true (enabled) for the following Expressions:

  • Not with an Expression that is likely to be selective
  • And with either Expression likely to be selective
  • Or with both Expressions likely to be selective
  • StringRegexExpression
    • Like
    • RLike
  • BinaryComparison
    • EqualNullSafe
    • EqualTo
    • GreaterThan
    • GreaterThanOrEqual
    • LessThan
    • LessThanOrEqual
  • In
  • InSet
  • StringPredicate
    • Contains
    • EndsWith
    • StartsWith
  • BinaryPredicate
  • MultiLikeBase
    • LikeAll
    • NotLikeAll
    • LikeAny
    • NotLikeAny

isLikelySelective is used when: