Class: Veritas::Optimizer::Relation::Operation::Combination
- Inherits:
-
Binary
- Object
- Veritas::Optimizer
- Binary
- Veritas::Optimizer::Relation::Operation::Combination
- Defined in:
- lib/veritas/optimizer/relation/operation/combination.rb
Overview
Abstract base class representing combinations of relations
Direct Known Subclasses
Defined Under Namespace
Classes: EmptyLeft, EmptyRight
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes included from Function::Binary
Attributes inherited from Veritas::Optimizer
Instance Method Summary collapse
-
#optimize ⇒ Relation::Empty
private
Any relation combined with an empty relation is an empty relation.
Methods included from Function::Binary
Methods inherited from Veritas::Optimizer
chain, #initialize, #optimizable?
Instance Method Details
#optimize ⇒ Relation::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.
Any relation combined with an empty relation is an empty relation
16 17 18 19 |
# File 'lib/veritas/optimizer/relation/operation/combination.rb', line 16 def optimize operation = self.operation Veritas::Relation::Empty.new(operation.header, operation) end |