class Axiom::Optimizer::Relation::Operation::Binary::SortedLeft
Optimize when the left operand is an Sorted
Public Instance Methods
optimizable?()
click to toggle source
Test if the left operand is an Sorted
@return [Boolean]
@api private
# File lib/axiom/optimizer/relation/operation/binary.rb, line 64 def optimizable? left.kind_of?(Axiom::Relation::Operation::Sorted) end
optimize()
click to toggle source
Drop the Sorted
and wrap the left operand
@return [Binary]
@api private
# File lib/axiom/optimizer/relation/operation/binary.rb, line 73 def optimize operation.class.new(left.operand, right) end