Class: GroongaDelta::Mapping

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga-delta/mapping.rb

Defined Under Namespace

Classes: ExpressionEvaluator, GroongaColumn, GroongaTable, Restriction, SourceDatabase, SourceTable

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Mapping

Returns a new instance of Mapping.



20
21
22
23
# File 'lib/groonga-delta/mapping.rb', line 20

def initialize(data)
  @data = data
  build_source_databases
end

Instance Method Details

#[](source_database_name, source_table_name = nil) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/groonga-delta/mapping.rb', line 29

def [](source_database_name, source_table_name=nil)
  if source_table_name.nil?
    @source_databases_index[source_database_name]
  else
    @source_tables_index[[source_database_name, source_table_name]]
  end
end

#source_databasesObject



25
26
27
# File 'lib/groonga-delta/mapping.rb', line 25

def source_databases
  @source_databases
end