module Axiom::Optimizer::Relation::Operation::Unary::SortedOperand

Optimize when the operand is an Sorted

Public Instance Methods

optimizable?() click to toggle source

Test if the operand is an Sorted

@return [Boolean]

@api private

# File lib/axiom/optimizer/relation/operation/unary.rb, line 37
def optimizable?
  operand.kind_of?(Axiom::Relation::Operation::Sorted)
end
optimize() click to toggle source

Drop the Sorted and wrap the operand

@return [Sorted]

@api private

# File lib/axiom/optimizer/relation/operation/unary.rb, line 46
def optimize
  wrap_operand
end