class Axiom::Optimizer::Relation::Operation::Sorted::OneLimitOperand
Optimize when the operand is a Limit
with a limit of 1
Public Instance Methods
optimizable?()
click to toggle source
Test if the operand is an Limit
with a limit of 1
@return [Boolean]
@api private
# File lib/axiom/optimizer/relation/operation/sorted.rb, line 42 def optimizable? operand.kind_of?(Axiom::Relation::Operation::Limit) && operand.limit == 1 end