class Axiom::Optimizer::Algebra::Product::TableDeeRight
Optimize when right operand is a TABLE DEE
Public Instance Methods
optimizable?()
click to toggle source
Test if the right operand is a TABLE DEE
@return [Boolean]
@api private
# File lib/axiom/optimizer/algebra/product.rb, line 41 def optimizable? right.header.empty? && !right.kind_of?(Axiom::Relation::Empty) end
optimize()
click to toggle source
A Product
with a right TABLE DEE is equivalent to the left operand
@return [Relation]
@api private
# File lib/axiom/optimizer/algebra/product.rb, line 50 def optimize left end