Class: Veritas::Optimizer::Algebra::Intersection::EmptyRight

Inherits:
Veritas::Optimizer::Algebra::Intersection show all
Includes:
Relation::Operation::Binary::EmptyRight
Defined in:
lib/veritas/optimizer/algebra/intersection.rb

Overview

Optimize when the right operand is empty

Constant Summary

Constants inherited from Veritas::Optimizer

Noop, VERSION

Instance Attribute Summary

Attributes included from Function::Binary

#left, #right

Attributes inherited from Veritas::Optimizer

#operation

Instance Method Summary collapse

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

#optimizable?

Methods included from Function::Binary

#initialize

Methods inherited from Veritas::Optimizer

chain, #initialize, #optimizable?

Instance Method Details

#optimizeRelation::Empty

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 an empty right operand is empty

Returns:

  • (Relation::Empty)


49
50
51
# File 'lib/veritas/optimizer/algebra/intersection.rb', line 49

def optimize
  right
end