Class: Axiom::Optimizer::Relation::Operation::Limit::ZeroLimit
- Inherits:
-
Axiom::Optimizer::Relation::Operation::Limit
- Object
- Axiom::Optimizer
- Unary
- Axiom::Optimizer::Relation::Operation::Limit
- Axiom::Optimizer::Relation::Operation::Limit::ZeroLimit
- Defined in:
- lib/axiom/optimizer/relation/operation/limit.rb
Overview
Optimize when the limit is zero
Constant Summary
Constants inherited from Axiom::Optimizer
Instance Attribute Summary
Attributes inherited from Unary
Attributes included from Function::Unary
Attributes inherited from Axiom::Optimizer
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the limit is zero.
-
#optimize ⇒ Relation::Empty
private
A Limit with a limit of zero is empty.
Methods inherited from Unary
Methods included from Function::Unary
Methods inherited from Axiom::Optimizer
Constructor Details
This class inherits a constructor from Axiom::Optimizer::Relation::Operation::Unary
Instance Method Details
#optimizable? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if the limit is zero
30 31 32 |
# File 'lib/axiom/optimizer/relation/operation/limit.rb', line 30 def optimizable? limit.zero? end |
#optimize ⇒ Relation::Empty
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A Limit with a limit of zero is empty
39 40 41 |
# File 'lib/axiom/optimizer/relation/operation/limit.rb', line 39 def optimize Axiom::Relation::Empty.new(operation.header) end |