Class: Veritas::Optimizer::Relation::Operation::Unary

Inherits:
Veritas::Optimizer show all
Includes:
Function::Unary
Defined in:
lib/veritas/optimizer/relation/operation/unary.rb

Overview

Abstract base class representing Unary relation optimizations

Defined Under Namespace

Modules: OrderOperand Classes: EmptyOperand, MaterializedOperand, UnchangedHeader

Constant Summary

Constants inherited from Veritas::Optimizer

Noop, VERSION

Instance Attribute Summary collapse

Attributes included from Function::Unary

#operand

Attributes inherited from Veritas::Optimizer

#operation

Instance Method Summary collapse

Methods inherited from Veritas::Optimizer

chain, #optimizable?, #optimize

Constructor Details

#initializeundefined

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 a Unary optimizer



24
25
26
27
# File 'lib/veritas/optimizer/relation/operation/unary.rb', line 24

def initialize(*)
  super
  @header = operation.header
end

Instance Attribute Details

#headerHeader (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 operation header

Returns:

  • (Header)


17
18
19
# File 'lib/veritas/optimizer/relation/operation/unary.rb', line 17

def header
  @header
end