Method: Cequel::Schema::TableReader#initialize

Defined in:
lib/cequel/schema/table_reader.rb

#initialize(table_data) ⇒ TableReader

Returns a new instance of TableReader.

Parameters:

  • keyspace (Metal::Keyspace)

    keyspace to read the table from

  • table_name (Symbol)

    name of the table to read

Since:

  • 1.0.0



53
54
55
56
57
# File 'lib/cequel/schema/table_reader.rb', line 53

def initialize(table_data)
  @table_data = table_data
  @table = Table.new(table_data.name,
                     Cassandra::MaterializedView === table_data)
end