Class: Axiom::Optimizer::Algebra::Difference::EqualOperands
- Inherits:
-
Axiom::Optimizer::Algebra::Difference
- Object
- Axiom::Optimizer
- Relation::Operation::Binary
- Axiom::Optimizer::Algebra::Difference
- Axiom::Optimizer::Algebra::Difference::EqualOperands
- Defined in:
- lib/axiom/optimizer/algebra/difference.rb
Overview
Optimize when operands are equal
Constant Summary
Constants inherited from Axiom::Optimizer
Instance Attribute Summary
Attributes included from Function::Binary
Attributes inherited from Axiom::Optimizer
Instance Method Summary collapse
-
#optimize ⇒ Relation::Empty
private
A Difference with equal operands is empty.
Methods included from Relation::Operation::Binary::EqualOperands
Methods included from Function::Binary
Methods inherited from Axiom::Optimizer
chain, #initialize, #optimizable?
Instance Method Details
#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 Difference with equal operands is empty
19 20 21 |
# File 'lib/axiom/optimizer/algebra/difference.rb', line 19 def optimize Axiom::Relation::Empty.new(operation.header) end |