class Axiom::Optimizer::Algebra::Rename::LimitOperand
Optimize when the operand is a Limit
Public Instance Methods
optimizable?()
click to toggle source
Test if the operand is a Limit
@return [Boolean]
@api private
# File lib/axiom/optimizer/algebra/rename.rb, line 286 def optimizable? operand.kind_of?(Axiom::Relation::Operation::Limit) end
optimize()
click to toggle source
Wrap the Rename
in a Limit
@return [Limit]
@api private
# File lib/axiom/optimizer/algebra/rename.rb, line 295 def optimize wrap_operand.take(operand.limit) end