Class: Veritas::Optimizer::Function::Connective::Disjunction::OptimizableToInclusion
- Inherits:
-
Veritas::Optimizer::Function::Connective::Disjunction
- Object
- Veritas::Optimizer
- Binary
- Veritas::Optimizer::Function::Connective::Disjunction
- Veritas::Optimizer::Function::Connective::Disjunction::OptimizableToInclusion
- Defined in:
- lib/veritas/optimizer/function/connective/disjunction.rb
Overview
Optimize when the operands are equality predicates for the same attribute
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes included from Binary
Attributes inherited from Veritas::Optimizer
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the operands are equality predicates for the same attribute.
-
#optimize ⇒ Inclusion
private
Return an Inclusion for an attribute having a set of values.
Methods included from Binary
Methods inherited from Veritas::Optimizer
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 operands are equality predicates for the same attribute
65 66 67 |
# File 'lib/veritas/optimizer/function/connective/disjunction.rb', line 65 def optimizable? equality_with_same_attributes? end |
#optimize ⇒ Inclusion
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.
Return an Inclusion for an attribute having a set of values
74 75 76 |
# File 'lib/veritas/optimizer/function/connective/disjunction.rb', line 74 def optimize left.left.include(merged_right_enumerables).optimize end |