Class: Axiom::Optimizer::Algebra::Rename

Inherits:
Relation::Operation::Unary show all
Defined in:
lib/axiom/optimizer/algebra/rename.rb

Overview

Abstract base class representing Rename optimizations

Defined Under Namespace

Classes: EmptyOperand, LimitOperand, OffsetOperand, ProjectionOperand, RenameOperand, RenameOperandAndEmptyAliases, RestrictionOperand, ReverseOperand, SetOperand, SortedOperand, UnoptimizedOperand

Constant Summary

Constants inherited from Axiom::Optimizer

Identity, VERSION

Instance Attribute Summary collapse

Attributes inherited from Relation::Operation::Unary

#header

Attributes included from Function::Unary

#operand

Attributes inherited from Axiom::Optimizer

#operation

Instance Method Summary collapse

Methods inherited from Axiom::Optimizer

chain, #optimizable?, #optimize

Constructor Details

#initialize(operation) ⇒ undefined

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.

Initialize an Rename optimizer

Parameters:



24
25
26
27
# File 'lib/axiom/optimizer/algebra/rename.rb', line 24

def initialize(operation)
  super
  @aliases = operation.aliases
end

Instance Attribute Details

#aliasesRename::Aliases (readonly)

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.

The optimized aliases

Returns:

  • (Rename::Aliases)


15
16
17
# File 'lib/axiom/optimizer/algebra/rename.rb', line 15

def aliases
  @aliases
end