class Axiom::Optimizer::Function::Connective::Conjunction::OptimizableToExclusion

Optimize when the operands are inequality predicates for the same attribute

Public Instance Methods

optimizable?() click to toggle source

Test if the operands are inequality predicates for the same attribute

@return [Boolean]

@api private

# File lib/axiom/optimizer/function/connective/conjunction.rb, line 65
def optimizable?
  inequality_with_same_attributes?
end
optimize() click to toggle source

Return an Exclusion for an attribute against a set of values

@return [Exclusion]

@api private

# File lib/axiom/optimizer/function/connective/conjunction.rb, line 74
def optimize
  left.left.exclude(merged_right_enumerables).optimize
end