Class: Veritas::Optimizer::Algebra::Product::TableDeeRight
- Inherits:
-
Veritas::Optimizer::Algebra::Product
- Object
- Veritas::Optimizer
- Relation::Operation::Binary
- Relation::Operation::Combination
- Veritas::Optimizer::Algebra::Product
- Veritas::Optimizer::Algebra::Product::TableDeeRight
- Defined in:
- lib/veritas/optimizer/algebra/product.rb
Overview
Optimize when right operand is a TABLE DEE
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes included from Function::Binary
Attributes inherited from Veritas::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 Veritas::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
42 43 44 45 |
# File 'lib/veritas/optimizer/algebra/product.rb', line 42 def optimizable? right = self.right right.header.empty? && ! right.kind_of?(Veritas::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
52 53 54 |
# File 'lib/veritas/optimizer/algebra/product.rb', line 52 def optimize left end |