Module: Veritas::Optimizer::Relation::Operation::Binary::EmptyRight

Included in:
Algebra::Difference::EmptyRight, Algebra::Intersection::EmptyRight, Algebra::Union::EmptyRight, Combination::EmptyRight
Defined in:
lib/veritas/optimizer/relation/operation/binary.rb

Overview

Optimize when the right operand is Empty

Instance Method Summary collapse

Instance Method Details

#optimizable?Boolean

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.

Test if the right operand is empty

Returns:

  • (Boolean)


50
51
52
# File 'lib/veritas/optimizer/relation/operation/binary.rb', line 50

def optimizable?
  right.kind_of?(Veritas::Relation::Empty)
end