Class: CassandraModel::MetaTable
Instance Method Summary
collapse
Methods inherited from TableRedux
#allow_truncation!, #clustering_columns, #columns, #connection, #in_context, #partition_key, #primary_key, #truncate!
Methods included from TableDebug
#debug
Constructor Details
#initialize(connection_name = nil, table_definition) ⇒ MetaTable
Returns a new instance of MetaTable.
3
4
5
6
|
# File 'lib/cassandra_model/meta_table.rb', line 3
def initialize(connection_name = nil, table_definition)
@table_definition = table_definition
@connection_name = connection_name
end
|
Instance Method Details
#==(rhs) ⇒ Object
19
20
21
22
|
# File 'lib/cassandra_model/meta_table.rb', line 19
def ==(rhs)
connection == rhs.connection &&
table_definition == rhs.table_definition
end
|
#name ⇒ Object
12
13
14
15
16
17
|
# File 'lib/cassandra_model/meta_table.rb', line 12
def name
@name ||= begin
create_table
name_in_cassandra
end
end
|
#reset_local_schema! ⇒ Object
8
9
10
|
# File 'lib/cassandra_model/meta_table.rb', line 8
def reset_local_schema!
raise Cassandra::Errors::ClientError, 'Schema changes are not supported for meta tables'
end
|