Module: Veritas::Optimizer::Function::Predicate::Enumerable::OneRightOperand
- Included in:
- Veritas::Optimizer::Function::Predicate::Exclusion::OneRightOperand, Inclusion::OneRightOperand
- Defined in:
- lib/veritas/optimizer/function/predicate/enumerable.rb
Overview
Optimize when the right operand has one entry
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the right operand has one entry.
Methods included from Veritas::Optimizer::Function::Predicate::Enumerable
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 has one entry
125 126 127 |
# File 'lib/veritas/optimizer/function/predicate/enumerable.rb', line 125 def optimizable? right.one? { true } end |