Class: Axiom::Optimizer::Algebra::Difference::EmptyRight

Inherits:
Axiom::Optimizer::Algebra::Difference show all
Includes:
Relation::Operation::Binary::EmptyRight
Defined in:
lib/axiom/optimizer/algebra/difference.rb

Overview

Optimize when the right operand is empty

Constant Summary

Constants inherited from Axiom::Optimizer

Identity, VERSION

Instance Attribute Summary

Attributes included from Function::Binary

#left, #right

Attributes inherited from Axiom::Optimizer

#operation

Instance Method Summary collapse

Methods included from Relation::Operation::Binary::EmptyRight

#optimizable?

Methods included from Function::Binary

#initialize

Methods inherited from Axiom::Optimizer

chain, #initialize, #optimizable?

Instance Method Details

#optimizeRelation

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

A Difference with an empty right operand is equivalent to the left

Returns:



49
50
51
# File 'lib/axiom/optimizer/algebra/difference.rb', line 49

def optimize
  left
end