Sha256: b2db9d4a1315a1395c99f3f54764e470dd5a4e436473d1083919a50155d27fd3
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
module Veritas class Optimizer module Algebra # Abstract base class representing Difference optimizations class Union < Relation::Operation::Binary # Optimize when operands are equal class EqualOperands < self include Relation::Operation::Binary::EqualOperands # A Union with equal operands is a noop # # @return [Relation] # # @api private def optimize left end end # class EqualOperands # Optimize when the left operand is empty class EmptyLeft < self include Relation::Operation::Binary::EmptyLeft # A Union with an empty left operand is equivalent to the right # # @return [Relation] # # @api private def optimize right end end # class EmptyLeft # Optimize when the right operand is empty class EmptyRight < self include Relation::Operation::Binary::EmptyRight # A Union with an empty right operand is equivalent to the left # # @return [Relation] # # @api private def optimize left end end # class EmptyRight Veritas::Algebra::Union.optimizer = chain( EqualOperands, EmptyRight, EmptyLeft, MaterializedOperand, UnoptimizedOperand ) end # class Union end # module Algebra end # class Optimizer end # module Veritas
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | lib/veritas/optimizer/algebra/union.rb |
veritas-0.0.1 | lib/veritas/optimizer/algebra/union.rb |