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

Direct Known Subclasses

EmptyOperand, LimitOperand, OffsetOperand, OrderOperand, ProjectionOperand, RenameOperand, RestrictionOperand, ReverseOperand, SetOperand, UnoptimizedOperand

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

- (undefined) initialize(operation)

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/veritas/optimizer/algebra/rename.rb', line 24

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

Instance Attribute Details

- (Rename::Aliases) 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/veritas/optimizer/algebra/rename.rb', line 15

def aliases
  @aliases
end