Class: Veritas::Optimizer::Algebra::Difference::EmptyLeft

Inherits:
Veritas::Optimizer::Algebra::Difference show all
Includes:
Relation::Operation::Binary::EmptyLeft
Defined in:
lib/veritas/optimizer/algebra/difference.rb

Overview

Optimize when the left 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::EmptyLeft

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

A Difference with an empty left operand is empty

Returns:

  • (Relation::Empty)


35
36
37
# File 'lib/veritas/optimizer/algebra/difference.rb', line 35

def optimize
  left
end