Module: Axiom::Optimizer::Relation::Operation::Binary::EqualOperands

Included in:
Algebra::Difference::EqualOperands, Algebra::Intersection::EqualOperands, Algebra::Union::EqualOperands
Defined in:
lib/axiom/optimizer/relation/operation/binary.rb

Overview

Optimize when operands are equal

Instance Method Summary collapse

Instance Method Details

#optimizable?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

TODO:

do not materialize the operands to compare them

Test if the operands are equal

Returns:

  • (Boolean)


22
23
24
# File 'lib/axiom/optimizer/relation/operation/binary.rb', line 22

def optimizable?
  left.eql?(right)
end