Module: Veritas::Optimizer::Function::Unary::UnoptimizedOperand
- Included in:
- Aggregate::UnoptimizedOperand, Algebra::Extension::UnoptimizedOperand, Algebra::Projection::UnoptimizedOperand, Algebra::Rename::UnoptimizedOperand, Algebra::Restriction::UnoptimizedOperand, Algebra::Summarization::UnoptimizedOperand, Connective::Negation::UnoptimizedOperand, Numeric::UnoptimizedOperand, String::Length::UnoptimizedOperand, Relation::Operation::Limit::UnoptimizedOperand, Relation::Operation::Offset::UnoptimizedOperand, Relation::Operation::Order::UnoptimizedOperand, Relation::Operation::Reverse::UnoptimizedOperand
- Defined in:
- lib/veritas/optimizer/function/unary.rb
Overview
Optimize when the operand is unoptimized
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the operand is unoptimized.
-
#optimize ⇒ Aggregate
private
Return a Aggregate with an optimized 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 unoptimized
69 70 71 |
# File 'lib/veritas/optimizer/function/unary.rb', line 69 def optimizable? ! operand.equal?(operation.operand) end |
#optimize ⇒ Aggregate
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 a Aggregate with an optimized operand
78 79 80 |
# File 'lib/veritas/optimizer/function/unary.rb', line 78 def optimize operation.class.new(operand) end |