Class: Axiom::Optimizer::Algebra::Product::TableDeeRight
- Inherits:
-
Axiom::Optimizer::Algebra::Product
- Object
- Axiom::Optimizer
- Relation::Operation::Binary
- Relation::Operation::Combination
- Axiom::Optimizer::Algebra::Product
- Axiom::Optimizer::Algebra::Product::TableDeeRight
- Defined in:
- lib/axiom/optimizer/algebra/product.rb
Overview
Optimize when right operand is a TABLE DEE
Constant Summary
Constants inherited from Axiom::Optimizer
Instance Attribute Summary
Attributes included from Function::Binary
Attributes inherited from Axiom::Optimizer
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the right operand is a TABLE DEE.
-
#optimize ⇒ Relation
private
A Product with a right TABLE DEE is equivalent to the left operand.
Methods included from Function::Binary
Methods inherited from Axiom::Optimizer
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 right operand is a TABLE DEE
41 42 43 |
# File 'lib/axiom/optimizer/algebra/product.rb', line 41 def optimizable? right.header.empty? && !right.kind_of?(Axiom::Relation::Empty) end |
#optimize ⇒ Relation
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 Product with a right TABLE DEE is equivalent to the left operand
50 51 52 |
# File 'lib/axiom/optimizer/algebra/product.rb', line 50 def optimize left end |