Class: Veritas::Optimizer::Algebra::Rename

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

Overview

Abstract base class representing Rename optimizations

Defined Under Namespace

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

Constant Summary

Constant Summary

Constants inherited from Veritas::Optimizer

Identity, VERSION

Instance Attribute Summary collapse

Attributes inherited from Relation::Operation::Unary

#header

Attributes included from Function::Unary

#operand

Attributes inherited from Veritas::Optimizer

#operation

Instance Method Summary collapse

Methods inherited from Veritas::Optimizer

chain, link_optimizers, #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



24
25
26
27
# File 'lib/veritas/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



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

def aliases
  @aliases
end