Class: Bmg::Relation::Materialized
- Inherits:
-
Object
- Object
- Bmg::Relation::Materialized
- Includes:
- Operator::Unary
- Defined in:
- lib/bmg/relation/materialized.rb
Instance Method Summary collapse
- #_count ⇒ Object
- #args ⇒ Object
- #each(&bl) ⇒ Object
-
#initialize(operand) ⇒ Materialized
constructor
A new instance of Materialized.
- #to_ast ⇒ Object
- #type ⇒ Object
Methods included from Operator::Unary
Methods included from Operator
Methods included from Bmg::Relation
#bind, #count, #debug, #delete, #empty?, #insert, new, #one, #one_or_nil, #to_csv, #to_json, #to_text, #to_xlsx, #update, #visit, #with_type, #with_type_attrlist, #with_typecheck, #without_typecheck, #y_by_x, #ys_by_x
Methods included from Factory
#csv, #empty, #excel, #excel_file, #generate, #in_memory, #json, #json_file, #mutable, #text_file, #yaml, #yaml_file
Methods included from Algebra
#allbut, #autosummarize, #autowrap, #constants, #extend, #group, #image, #join, #left_join, #matching, #materialize, #minus, #not_matching, #page, #project, #rename, #restrict, #spied, #summarize, #transform, #undress, #ungroup, #union, #unspied, #unwrap
Methods included from Algebra::Shortcuts
#cross_product, #exclude, #image, #images, #join, #left_join, #matching, #not_matching, #prefix, #rxmatch, #suffix, #ungroup, #unwrap, #where
Constructor Details
#initialize(operand) ⇒ Materialized
Returns a new instance of Materialized.
6 7 8 9 |
# File 'lib/bmg/relation/materialized.rb', line 6 def initialize(operand) @operand = operand @materialized = nil end |
Instance Method Details
#_count ⇒ Object
22 23 24 |
# File 'lib/bmg/relation/materialized.rb', line 22 def _count _materialize._count end |
#args ⇒ Object
37 38 39 |
# File 'lib/bmg/relation/materialized.rb', line 37 def args [] end |
#each(&bl) ⇒ Object
28 29 30 31 |
# File 'lib/bmg/relation/materialized.rb', line 28 def each(&bl) return to_enum unless block_given? _materialize.each(&bl) end |
#to_ast ⇒ Object
33 34 35 |
# File 'lib/bmg/relation/materialized.rb', line 33 def to_ast [ :materizalized, operand ] end |
#type ⇒ Object
11 12 13 |
# File 'lib/bmg/relation/materialized.rb', line 11 def type operand.type end |