lib/axiom/optimizer/algebra/summarization.rb in axiom-optimizer-0.1.1 vs lib/axiom/optimizer/algebra/summarization.rb in axiom-optimizer-0.2.0
- old
+ new
@@ -133,14 +133,14 @@
Axiom::Relation::Empty.new(operation.header)
end
end # class EmptySummarizePer
- # Optimize when the operand is an Order
- class OrderOperand < self
- include Relation::Operation::Unary::OrderOperand
- end # class OrderOperand
+ # Optimize when the operand is an Sorted
+ class SortedOperand < self
+ include Relation::Operation::Unary::SortedOperand
+ end # class SortedOperand
# Optimize when operand is optimizable
class UnoptimizedOperand < self
include Function::Unary::UnoptimizedOperand
@@ -170,27 +170,27 @@
#
# @return [Boolean]
#
# @api private
def summarize_per_optimizable?
- ! summarize_per.equal?(operation.summarize_per)
+ !summarize_per.equal?(operation.summarize_per)
end
# Test if the summarizers are optimizable
#
# @return [Boolean]
#
# @api private
def summarizers_optimizable?
- ! summarizers.eql?(operation.summarizers)
+ !summarizers.eql?(operation.summarizers)
end
end # class UnoptimizedOperand
Axiom::Algebra::Summarization.optimizer = chain(
EmptyOperand,
EmptySummarizePer,
- OrderOperand,
+ SortedOperand,
MaterializedOperand,
UnoptimizedOperand
)
end # class Summarization