Class: Axiom::Optimizer::Algebra::Join::MaterializedRight
- Inherits:
-
Axiom::Optimizer::Algebra::Join
- Object
- Axiom::Optimizer
- Relation::Operation::Binary
- Relation::Operation::Combination
- Axiom::Optimizer::Algebra::Join
- Axiom::Optimizer::Algebra::Join::MaterializedRight
- Defined in:
- lib/axiom/optimizer/algebra/join.rb
Overview
Optimize when the right operand is materialized
Constant Summary
Constants inherited from Axiom::Optimizer::Algebra::Join
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 materialized.
-
#optimize ⇒ Algebra::Join
private
Return the join of the left and right with the left restricted.
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 materialized
133 134 135 |
# File 'lib/axiom/optimizer/algebra/join.rb', line 133 def optimizable? right.materialized? && !left_matching_right? end |
#optimize ⇒ Algebra::Join
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.
Return the join of the left and right with the left restricted
142 143 144 |
# File 'lib/axiom/optimizer/algebra/join.rb', line 142 def optimize left.restrict(materialized_predicate).join(right) end |