Module: Axiom::Optimizer::Relation::Operation::Unary::SortedOperand
- Included in:
- Algebra::Extension::SortedOperand, Algebra::Projection::SortedOperand, Algebra::Rename::SortedOperand, Algebra::Restriction::SortedOperand, Algebra::Summarization::SortedOperand
- Defined in:
- lib/axiom/optimizer/relation/operation/unary.rb
Overview
Optimize when the operand is an Sorted
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the operand is an Sorted.
-
#optimize ⇒ Sorted
private
Drop the Sorted and wrap the operand.
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 operand is an Sorted
37 38 39 |
# File 'lib/axiom/optimizer/relation/operation/unary.rb', line 37 def optimizable? operand.kind_of?(Axiom::Relation::Operation::Sorted) end |
#optimize ⇒ Sorted
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.
Drop the Sorted and wrap the operand
46 47 48 |
# File 'lib/axiom/optimizer/relation/operation/unary.rb', line 46 def optimize wrap_operand end |