class Axiom::Optimizer::Algebra::Projection::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/projection.rb, line 168 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/projection.rb, line 177 def optimize Axiom::Relation::Empty.new(header) end