Class Rddb::MaterializationStore::RamMaterializationStore
In: lib/rddb/materialization_store/ram_materialization_store.rb
Parent: Base

Materialization store implementation that stores view data in RAM.

Methods

delete   exists?   find   new   store  

Public Class methods

Initialized the materialization store with the given options.

[Source]

   # File lib/rddb/materialization_store/ram_materialization_store.rb, line 7
7:       def initialize(options={})
8:         @options = options
9:       end

Public Instance methods

Delete the view.

[Source]

    # File lib/rddb/materialization_store/ram_materialization_store.rb, line 24
24:       def delete(name)
25:         materialized_views.delete(name)
26:       end

Return true if the view exists in storage.

[Source]

    # File lib/rddb/materialization_store/ram_materialization_store.rb, line 29
29:       def exists?(name)
30:         materialized_views.key?(name)
31:       end

Find the view.

[Source]

    # File lib/rddb/materialization_store/ram_materialization_store.rb, line 12
12:       def find(name)
13:         materialized_views[name]
14:       end

Store the view.

[Source]

    # File lib/rddb/materialization_store/ram_materialization_store.rb, line 17
17:       def store(view)
18:         if view.materialized?
19:           materialized_views[view.name] = view.materialized
20:         end
21:       end

[Validate]