Sha256: 7fcbf5c0668e488050eb14934da9bcbc192bb6aed81759c029807d78fce327bc
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
module Veritas class Optimizer module Relation # Abstract base class representing Materialized optimizations class Materialized < Optimizer # Optimize when the operand is Empty class EmptyOperand < self # Test if the operand is empty # # @return [Boolean] # # @api private def optimizable? operation.empty? end # Return a new Empty relation with the operation's headers # # @return [Empty] # # @api private def optimize Veritas::Relation::Empty.new(operation.header) end end # class EmptyOperand Veritas::Relation::Materialized.optimizer = chain( EmptyOperand ) end # class Materialized end # module Relation 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/relation/materialized.rb |
veritas-0.0.1 | lib/veritas/optimizer/relation/materialized.rb |