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.



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

def initialize
  @items = {}
end

Instance Method Details

#add(table_item) ⇒ Object



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

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



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

def items
  @items
end