class Bmg::Relation::Materialized

Public Class Methods

new(operand) click to toggle source
# File lib/bmg/relation/materialized.rb, line 6
def initialize(operand)
  @operand = operand
end

Public Instance Methods

_count() click to toggle source
# File lib/bmg/relation/materialized.rb, line 21
def _count
  operand._count
end
args() click to toggle source
# File lib/bmg/relation/materialized.rb, line 36
def args
  []
end
each(&bl) click to toggle source
# File lib/bmg/relation/materialized.rb, line 27
def each(&bl)
  @operand = Relation::InMemory.new(operand.type, operand.to_a) unless @operand.is_a?(Relation::InMemory)
  @operand.each(&bl)
end
to_ast() click to toggle source
# File lib/bmg/relation/materialized.rb, line 32
def to_ast
  [ :materizalized, operand ]
end
type() click to toggle source
# File lib/bmg/relation/materialized.rb, line 10
def type
  operand.type
end

Protected Instance Methods

type=(type) click to toggle source
# File lib/bmg/relation/materialized.rb, line 14
def type=(type)
  operand.type = type
end