class Axiom::Optimizer::Algebra::Rename::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/algebra/rename.rb, line 332 def optimizable? operand.kind_of?(Axiom::Relation::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/algebra/rename.rb, line 341 def optimize Axiom::Relation::Empty.new(header) end