Class: Metadata::BatchGetRowRequest

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

Instance Method Summary collapse

Constructor Details

#initializeBatchGetRowRequest

Returns a new instance of BatchGetRowRequest.



288
289
290
# File 'lib/tablestore/metadata.rb', line 288

def initialize
  @items = {}
end

Instance Method Details

#add(table_item) ⇒ Object



296
297
298
299
300
301
302
303
304
305
306
# File 'lib/tablestore/metadata.rb', line 296

def add(table_item)
    """
    说明:添加tablestore.metadata.TableInBatchGetRowItem对象
    注意:对象内部存储tablestore.metadata.TableInBatchGetRowItem对象采用‘字典’的形式,Key是表
          的名字,因此如果插入同表名的对象,那么之前的对象将被覆盖。
    """
  unless table_item.is_a?(TableInBatchGetRowItem)
    raise TableStoreClientError.new("The input table_item should be an instance of TableInBatchGetRowItem, not #{table_item.class}")
  end
  @items[table_item.table_name] = table_item
end

#itemsObject



292
293
294
# File 'lib/tablestore/metadata.rb', line 292

def items
  @items
end