class Axiom::Optimizer::Relation::Materialized::EmptyOperand
Optimize when the operand is Empty
Public Instance Methods
optimizable?()
click to toggle source
Test if the operand is empty
@return [Boolean]
@api private
# File lib/axiom/optimizer/relation/materialized.rb, line 18 def optimizable? operation.empty? end
optimize()
click to toggle source
Return a new Empty relation with the operation’s headers
@return [Empty]
@api private
# File lib/axiom/optimizer/relation/materialized.rb, line 27 def optimize Axiom::Relation::Empty.new(operation.header) end