Class: Veritas::Optimizer::Algebra::Rename::OrderOperand
- Inherits:
-
Veritas::Optimizer::Algebra::Rename
- Object
- Veritas::Optimizer
- Relation::Operation::Unary
- Veritas::Optimizer::Algebra::Rename
- Veritas::Optimizer::Algebra::Rename::OrderOperand
- Includes:
- Relation::Operation::Unary::OrderOperand
- Defined in:
- lib/veritas/optimizer/algebra/rename.rb
Overview
Optimize when the operand is an Order
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes inherited from Veritas::Optimizer::Algebra::Rename
Attributes inherited from Relation::Operation::Unary
Attributes included from Function::Unary
Attributes inherited from Veritas::Optimizer
Instance Method Summary collapse
-
#optimize ⇒ Order
private
Wrap the Rename in an Order.
Methods included from Relation::Operation::Unary::OrderOperand
Methods inherited from Veritas::Optimizer::Algebra::Rename
Methods inherited from Relation::Operation::Unary
Methods included from Function::Unary
Methods inherited from Veritas::Optimizer
chain, #initialize, #optimizable?
Constructor Details
This class inherits a constructor from Veritas::Optimizer::Algebra::Rename
Instance Method Details
#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.
Wrap the Rename in an Order
260 261 262 |
# File 'lib/veritas/optimizer/algebra/rename.rb', line 260 def optimize wrap_operand.sort_by { directions } end |