Class: Alf::Optimizer::Base

Inherits:
Algebra::Rewriter show all
Includes:
Lang::Functional
Defined in:
lib/alf/optimizer.rb

Direct Known Subclasses

Project, Restrict

Instance Method Summary collapse

Methods included from Lang::Functional

#Heading, #Relation, #Tuple, def_aggregator_method, def_operator_method

Methods inherited from Algebra::Rewriter

#apply, #not_supported, #on_leaf_operand, #on_missing, #on_shortcut

Methods included from Algebra::Visitor

#copy_and_apply

Instance Method Details

#call(expr, search = nil) ⇒ Object


20
21
22
23
# File 'lib/alf/optimizer.rb', line 20

def call(expr, search = nil)
  return Search.new(self, search_predicate).call(expr) unless search
  _call(expr, search)
end