Class: Metadata::TableMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/tablestore/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name, schema_of_primary_key) ⇒ TableMeta

Returns a new instance of TableMeta.



45
46
47
48
49
# File 'lib/tablestore/metadata.rb', line 45

def initialize(table_name, schema_of_primary_key)
  # schema_of_primary_key: [('PK0', 'STRING'), ('PK1', 'INTEGER'), ...]
  self.table_name = table_name
  self.schema_of_primary_key = schema_of_primary_key
end

Instance Attribute Details

#schema_of_primary_keyObject

Returns the value of attribute schema_of_primary_key.



44
45
46
# File 'lib/tablestore/metadata.rb', line 44

def schema_of_primary_key
  @schema_of_primary_key
end

#table_nameObject

Returns the value of attribute table_name.



44
45
46
# File 'lib/tablestore/metadata.rb', line 44

def table_name
  @table_name
end