class Axiom::Optimizer::Relation::Operation::Limit::ZeroLimit

Optimize when the limit is zero

Public Instance Methods

optimizable?() click to toggle source

Test if the limit is zero

@return [Boolean]

@api private

# File lib/axiom/optimizer/relation/operation/limit.rb, line 30
def optimizable?
  limit.zero?
end
optimize() click to toggle source

A Limit with a limit of zero is empty

@return [Relation::Empty]

@api private

# File lib/axiom/optimizer/relation/operation/limit.rb, line 39
def optimize
  Axiom::Relation::Empty.new(operation.header)
end