class Axiom::Optimizer::Algebra::Product::TableDeeLeft

Optimize when left operand is a TABLE DEE

Public Instance Methods

optimizable?() click to toggle source

Test if the left operand is a TABLE DEE

@return [Boolean]

@api private

# File lib/axiom/optimizer/algebra/product.rb, line 18
def optimizable?
  left.header.empty? && !left.kind_of?(Axiom::Relation::Empty)
end
optimize() click to toggle source

A Product with a left TABLE DEE is equivalent to the right operand

@return [Relation]

@api private

# File lib/axiom/optimizer/algebra/product.rb, line 27
def optimize
  right
end