Class: Axiom::Optimizer::Algebra::Intersection::EqualOperands

Inherits:
Axiom::Optimizer::Algebra::Intersection show all
Includes:
Relation::Operation::Binary::EqualOperands
Defined in:
lib/axiom/optimizer/algebra/intersection.rb

Overview

Optimize when operands are equal

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::EqualOperands

#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.

An Intersection with equal operands is equivalent to either operand

Returns:



19
20
21
# File 'lib/axiom/optimizer/algebra/intersection.rb', line 19

def optimize
  left
end