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