Module: Veritas::Optimizer::Relation::Operation::Binary::EmptyLeft

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

Overview

Optimize when the left 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 left operand is empty

Returns:

  • (Boolean)


36
37
38
# File 'lib/veritas/optimizer/relation/operation/binary.rb', line 36

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