class Axiom::Optimizer::Relation::Operation::Unary::MaterializedOperand

Optimize when the operand is Materialized

Public Instance Methods

optimizable?() click to toggle source

Test if the operand is materialized

@return [Boolean]

@api private

# File lib/axiom/optimizer/relation/operation/unary.rb, line 106
def optimizable?
  operand.kind_of?(Axiom::Relation::Materialized)
end
optimize() click to toggle source

Return the materialized operation

@return [Relation::Materialized]

@api private

# File lib/axiom/optimizer/relation/operation/unary.rb, line 115
def optimize
  operation.materialize
end