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