lib/veritas/optimizer/algebra/product.rb in veritas-0.0.1 vs lib/veritas/optimizer/algebra/product.rb in veritas-0.0.2

- old
+ new

@@ -1,11 +1,11 @@ module Veritas class Optimizer module Algebra # Abstract base class representing Product optimizations - class Product < Relation::Operation::Combine + class Product < Relation::Operation::Combination # Optimize when left operand is a TABLE DEE class TableDeeLeft < self # Test if the left operand is a TABLE DEE @@ -16,11 +16,11 @@ def optimizable? left = self.left left.header.empty? && !left.kind_of?(Veritas::Relation::Empty) end - # A Product wih a left TABLE DEE is equivalent to the right operand + # A Product with a left TABLE DEE is equivalent to the right operand # # @return [Relation] # # @api private def optimize @@ -40,10 +40,10 @@ def optimizable? right = self.right right.header.empty? && !right.kind_of?(Veritas::Relation::Empty) end - # A Product wih a right TABLE DEE is equivalent to the left operand + # A Product with a right TABLE DEE is equivalent to the left operand # # @return [Relation] # # @api private def optimize