全部产品
表格存储

GetStreamRecord

更新时间:2017-09-07 20:05:40   分享:   

行为:

读取当前shard的增量内容。

请求结构:

  1. message GetStreamRecordRequest {
  2. required string shard_iterator = 1;
  3. optional int32 limit = 2;
  4. }

shard_iterator:

  • 类型:required string

  • 当前shard读取的iterator

响应消息结构:

  1. message GetStreamRecordResponse {
  2. message StreamRecord {
  3. required ActionType action_type = 1;
  4. required bytes record = 2;
  5. }
  6. repeated StreamRecord stream_records = 1;
  7. optional string next_shard_iterator = 2;
  8. }

StreamRecord:

  • 类型:repeated StreamRecord

  • 读取当前shard记录的record entry

shard_iterator:

  • 类型:required string

  • 下次读取此shard的iterator

本文导读目录
本文导读目录
以上内容是否对您有帮助?