tablestore-ruby-sdk 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protobuf/table_store.pb.rb +684 -0
- data/lib/protobuf/{ots.proto → table_store.proto} +108 -115
- data/lib/protobuf/table_store_filiter.pb.rb +96 -0
- data/lib/protobuf/{ots_filiter.proto → table_store_filiter.proto} +10 -14
- data/lib/tablestore-ruby-sdk.rb +18 -18
- data/lib/tablestore/error.rb +1 -1
- data/lib/tablestore/metadata.rb +1 -1
- data/lib/tablestore/plain_buffer_coded_output_stream.rb +6 -19
- data/lib/tablestore/protocol.rb +1 -1
- data/lib/tablestore/{ots.rb → table_store_client.rb} +100 -56
- metadata +7 -7
- data/lib/protobuf/ots_filiter_pb.rb +0 -55
- data/lib/protobuf/ots_pb.rb +0 -307
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36ab88b0d68c1d3d9b195807ad3f20b8350e846
|
4
|
+
data.tar.gz: '0928fd79588d6dbcca9d7af69ff4aa188f5ebbb0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65470041a252ccfc3812746fa787904cfa351346bbdc0989f7712e9f1b2c8a76cce11b8a2378e5da86de69bd51d9252c8385a18fe6429ee13ce650583ef6cea2
|
7
|
+
data.tar.gz: d805aa949b1a73d505db768b3076ca0f21d7adc75a1aa1a71a0177a9d0435662b29a28d55030301594c42dd0bd278c1a1ca47615d4951878818c5e1b0458562a
|
@@ -0,0 +1,684 @@
|
|
1
|
+
### Generated by rprotoc. DO NOT EDIT!
|
2
|
+
### <proto file: table_store.proto>
|
3
|
+
# message Error {
|
4
|
+
# required string code = 1;
|
5
|
+
# optional string message = 2;
|
6
|
+
# }
|
7
|
+
#
|
8
|
+
# enum PrimaryKeyType {
|
9
|
+
# INTEGER = 1;
|
10
|
+
# STRING = 2;
|
11
|
+
# BINARY = 3;
|
12
|
+
# }
|
13
|
+
#
|
14
|
+
# enum PrimaryKeyOption {
|
15
|
+
# AUTO_INCREMENT = 1;
|
16
|
+
# }
|
17
|
+
#
|
18
|
+
# message PrimaryKeySchema {
|
19
|
+
# required string name = 1;
|
20
|
+
# required PrimaryKeyType type = 2;
|
21
|
+
# optional PrimaryKeyOption option = 3;
|
22
|
+
# }
|
23
|
+
#
|
24
|
+
# message PartitionRange {
|
25
|
+
# required bytes begin = 1; // encoded as SQLVariant
|
26
|
+
# required bytes end = 2; // encoded as SQLVariant
|
27
|
+
# }
|
28
|
+
#
|
29
|
+
# message TableOptions {
|
30
|
+
# optional int32 time_to_live = 1; // 可以动态更改
|
31
|
+
# optional int32 max_versions = 2; // 可以动态更改
|
32
|
+
# optional int64 deviation_cell_version_in_sec = 5; // 可以动态修改
|
33
|
+
# }
|
34
|
+
#
|
35
|
+
# message TableMeta {
|
36
|
+
# required string table_name = 1;
|
37
|
+
# repeated PrimaryKeySchema primary_key = 2;
|
38
|
+
# }
|
39
|
+
#
|
40
|
+
# enum RowExistenceExpectation {
|
41
|
+
# IGNORE = 0;
|
42
|
+
# EXPECT_EXIST = 1;
|
43
|
+
# EXPECT_NOT_EXIST = 2;
|
44
|
+
# }
|
45
|
+
#
|
46
|
+
# message Condition {
|
47
|
+
# required RowExistenceExpectation row_existence = 1;
|
48
|
+
# optional bytes column_condition = 2;
|
49
|
+
# }
|
50
|
+
#
|
51
|
+
# message CapacityUnit {
|
52
|
+
# optional int32 read = 1;
|
53
|
+
# optional int32 write = 2;
|
54
|
+
# }
|
55
|
+
#
|
56
|
+
# message ReservedThroughputDetails {
|
57
|
+
# required CapacityUnit capacity_unit = 1; // 表当前的预留吞吐量的值。
|
58
|
+
# required int64 last_increase_time = 2; // 最后一次上调预留吞吐量的时间。
|
59
|
+
# optional int64 last_decrease_time = 3; // 最后一次下调预留吞吐量的时间。
|
60
|
+
# }
|
61
|
+
#
|
62
|
+
# message ReservedThroughput {
|
63
|
+
# required CapacityUnit capacity_unit = 1;
|
64
|
+
# }
|
65
|
+
#
|
66
|
+
# message ConsumedCapacity {
|
67
|
+
# required CapacityUnit capacity_unit = 1;
|
68
|
+
# }
|
69
|
+
#
|
70
|
+
# /* ############################################# CreateTable ############################################# */
|
71
|
+
# /**
|
72
|
+
# * table_meta用于存储表中不可更改的schema属性,可以更改的ReservedThroughput和TableOptions独立出来,作为UpdateTable的参数。
|
73
|
+
# * 加入GlobalIndex和LocalIndex之后,结构会变为:
|
74
|
+
# * message CreateTableRequest {
|
75
|
+
# * required TableMeta table_meta = 1;
|
76
|
+
# * required ReservedThroughput reserved_throughput = 2;
|
77
|
+
# * required TableOptions table_options = 3;
|
78
|
+
# * repeated LocalIndex local_indexes = 4; // LocalIndex不再单独包含ReservedThroughput和TableOptions,其与主表共享配置。
|
79
|
+
# * repeated GlobalIndex global_indexes = 5; // GlobalIndex内单独包含ReservedThroughput和TableOptions
|
80
|
+
# * }
|
81
|
+
# */
|
82
|
+
# message CreateTableRequest {
|
83
|
+
# required TableMeta table_meta = 1;
|
84
|
+
# required ReservedThroughput reserved_throughput = 2; // 未放在TableOptions内,原因是UpdateTableResponse中会返回ReservedThroughputDetails,而TableOptions没有类似的返回结构。
|
85
|
+
# optional TableOptions table_options = 3;
|
86
|
+
# repeated PartitionRange partitions = 4;
|
87
|
+
# }
|
88
|
+
#
|
89
|
+
# message CreateTableResponse {
|
90
|
+
# }
|
91
|
+
#
|
92
|
+
# /* ######################################################################################################### */
|
93
|
+
#
|
94
|
+
#
|
95
|
+
# /* ############################################# UpdateTable ############################################# */
|
96
|
+
# message UpdateTableRequest {
|
97
|
+
# required string table_name = 1;
|
98
|
+
# optional ReservedThroughput reserved_throughput = 2;
|
99
|
+
# optional TableOptions table_options = 3;
|
100
|
+
# }
|
101
|
+
#
|
102
|
+
# message UpdateTableResponse {
|
103
|
+
# required ReservedThroughputDetails reserved_throughput_details = 1;
|
104
|
+
# required TableOptions table_options = 2;
|
105
|
+
# }
|
106
|
+
# /* ######################################################################################################### */
|
107
|
+
#
|
108
|
+
# /* ############################################# DescribeTable ############################################# */
|
109
|
+
# message DescribeTableRequest {
|
110
|
+
# required string table_name = 1;
|
111
|
+
# }
|
112
|
+
#
|
113
|
+
# message DescribeTableResponse {
|
114
|
+
# required TableMeta table_meta = 1;
|
115
|
+
# required ReservedThroughputDetails reserved_throughput_details = 2;
|
116
|
+
# required TableOptions table_options = 3;
|
117
|
+
# repeated bytes shard_splits = 6;
|
118
|
+
# }
|
119
|
+
# /* ########################################################################################################### */
|
120
|
+
#
|
121
|
+
# /* ############################################# ListTable ############################################# */
|
122
|
+
# message ListTableRequest {
|
123
|
+
# }
|
124
|
+
#
|
125
|
+
# /**
|
126
|
+
# * 当前只返回一个简单的名称列表,需要讨论是否有业务场景需要获取除了表名之外的其他信息。
|
127
|
+
# * 其他信息可以包含预留吞吐量以及表的状态,这个信息只能是一个粗略的信息,表的详细信息还是需要通过DescribeTable来获取。
|
128
|
+
# */
|
129
|
+
# message ListTableResponse {
|
130
|
+
# repeated string table_names = 1;
|
131
|
+
# }
|
132
|
+
# /* ####################################################################################################### */
|
133
|
+
#
|
134
|
+
# /* ############################################# DeleteTable ############################################# */
|
135
|
+
# message DeleteTableRequest {
|
136
|
+
# required string table_name = 1;
|
137
|
+
# }
|
138
|
+
#
|
139
|
+
# message DeleteTableResponse {
|
140
|
+
# }
|
141
|
+
# /* ######################################################################################################### */
|
142
|
+
#
|
143
|
+
# /* ############################################# LoadTable ############################################# */
|
144
|
+
# message LoadTableRequest {
|
145
|
+
# required string table_name = 1;
|
146
|
+
# }
|
147
|
+
#
|
148
|
+
# message LoadTableResponse {
|
149
|
+
# }
|
150
|
+
# /* ######################################################################################################### */
|
151
|
+
#
|
152
|
+
# /* ############################################# UnloadTable ############################################# */
|
153
|
+
# message UnloadTableRequest {
|
154
|
+
# required string table_name = 1;
|
155
|
+
# }
|
156
|
+
#
|
157
|
+
# message UnloadTableResponse {
|
158
|
+
#
|
159
|
+
# }
|
160
|
+
# /* ########################################################################################################## */
|
161
|
+
#
|
162
|
+
# /**
|
163
|
+
# * 时间戳的取值最小值为0,最大值为INT64.MAX
|
164
|
+
# * 1. 若要查询一个范围,则指定start_time和end_time
|
165
|
+
# * 2. 若要查询一个特定时间戳,则指定specific_time
|
166
|
+
# */
|
167
|
+
# message TimeRange {
|
168
|
+
# optional int64 start_time = 1;
|
169
|
+
# optional int64 end_time = 2;
|
170
|
+
# optional int64 specific_time = 3;
|
171
|
+
# }
|
172
|
+
#
|
173
|
+
# /* ############################################# GetRow ############################################# */
|
174
|
+
#
|
175
|
+
# enum ReturnType {
|
176
|
+
# RT_NONE = 0;
|
177
|
+
# RT_PK = 1;
|
178
|
+
# }
|
179
|
+
#
|
180
|
+
# message ReturnContent {
|
181
|
+
# optional ReturnType return_type = 1;
|
182
|
+
# }
|
183
|
+
#
|
184
|
+
# /**
|
185
|
+
# * 1. 支持用户指定版本时间戳范围或者特定的版本时间来读取指定版本的列
|
186
|
+
# * 2. 目前暂不支持行内的断点
|
187
|
+
# */
|
188
|
+
# message GetRowRequest {
|
189
|
+
# required string table_name = 1;
|
190
|
+
# required bytes primary_key = 2; // encoded as InplaceRowChangeSet, but only has primary key
|
191
|
+
# repeated string columns_to_get = 3; // 不指定则读出所有的列
|
192
|
+
# optional TimeRange time_range = 4;
|
193
|
+
# optional int32 max_versions = 5;
|
194
|
+
# optional bytes filter = 7;
|
195
|
+
# optional string start_column = 8;
|
196
|
+
# optional string end_column = 9;
|
197
|
+
# optional bytes token = 10;
|
198
|
+
# }
|
199
|
+
#
|
200
|
+
# message GetRowResponse {
|
201
|
+
# required ConsumedCapacity consumed = 1;
|
202
|
+
# required bytes row = 2; // encoded as InplaceRowChangeSet
|
203
|
+
# optional bytes next_token = 3;
|
204
|
+
# }
|
205
|
+
# /* #################################################################################################### */
|
206
|
+
#
|
207
|
+
# /* ############################################# UpdateRow ############################################# */
|
208
|
+
# message UpdateRowRequest {
|
209
|
+
# required string table_name = 1;
|
210
|
+
# required bytes row_change = 2;
|
211
|
+
# required Condition condition = 3;
|
212
|
+
# optional ReturnContent return_content = 4;
|
213
|
+
# }
|
214
|
+
#
|
215
|
+
# message UpdateRowResponse {
|
216
|
+
# required ConsumedCapacity consumed = 1;
|
217
|
+
# optional bytes row = 2;
|
218
|
+
# }
|
219
|
+
# /* ####################################################################################################### */
|
220
|
+
#
|
221
|
+
# /* ############################################# PutRow ############################################# */
|
222
|
+
#
|
223
|
+
#
|
224
|
+
# /**
|
225
|
+
# * 这里允许用户为每列单独设置timestamp,而不是强制整行统一一个timestamp。
|
226
|
+
# * 原因是列都是用统一的结构,该结构本身是带timestamp的,其次强制统一timestamp增强了规范性但是丧失了灵活性,且该规范性没有明显的好处,反而带来了结构的复杂。
|
227
|
+
# */
|
228
|
+
# message PutRowRequest {
|
229
|
+
# required string table_name = 1;
|
230
|
+
# required bytes row = 2; // encoded as InplaceRowChangeSet
|
231
|
+
# required Condition condition = 3;
|
232
|
+
# optional ReturnContent return_content = 4;
|
233
|
+
# }
|
234
|
+
#
|
235
|
+
# message PutRowResponse {
|
236
|
+
# required ConsumedCapacity consumed = 1;
|
237
|
+
# optional bytes row = 2; // encoded as InplaceRowChangeSet
|
238
|
+
# }
|
239
|
+
# /* #################################################################################################### */
|
240
|
+
#
|
241
|
+
# /* ############################################# DeleteRow ############################################# */
|
242
|
+
# /**
|
243
|
+
# * OTS只支持删除该行的所有列所有版本,不支持:
|
244
|
+
# * 1. 删除所有列的所有小于等于某个版本的所有版本
|
245
|
+
# */
|
246
|
+
# message DeleteRowRequest {
|
247
|
+
# required string table_name = 1;
|
248
|
+
# required bytes primary_key = 2; // encoded as InplaceRowChangeSet, but only has primary key
|
249
|
+
# required Condition condition = 3;
|
250
|
+
# optional ReturnContent return_content = 4;
|
251
|
+
# }
|
252
|
+
#
|
253
|
+
# message DeleteRowResponse {
|
254
|
+
# required ConsumedCapacity consumed = 1;
|
255
|
+
# optional bytes row = 2;
|
256
|
+
# }
|
257
|
+
# /* ####################################################################################################### */
|
258
|
+
#
|
259
|
+
# /* ############################################# BatchGetRow ############################################# */
|
260
|
+
# message TableInBatchGetRowRequest {
|
261
|
+
# required string table_name = 1;
|
262
|
+
# repeated bytes primary_key = 2; // encoded as InplaceRowChangeSet, but only has primary key
|
263
|
+
# repeated bytes token = 3;
|
264
|
+
# repeated string columns_to_get = 4; // 不指定则读出所有的列
|
265
|
+
# optional TimeRange time_range = 5;
|
266
|
+
# optional int32 max_versions = 6;
|
267
|
+
# optional bytes filter = 8;
|
268
|
+
# optional string start_column = 9;
|
269
|
+
# optional string end_column = 10;
|
270
|
+
# }
|
271
|
+
#
|
272
|
+
# message BatchGetRowRequest {
|
273
|
+
# repeated TableInBatchGetRowRequest tables = 1;
|
274
|
+
# }
|
275
|
+
#
|
276
|
+
# message RowInBatchGetRowResponse {
|
277
|
+
# required bool is_ok = 1;
|
278
|
+
# optional Error error = 2;
|
279
|
+
# optional ConsumedCapacity consumed = 3;
|
280
|
+
# optional bytes row = 4; // encoded as InplaceRowChangeSet
|
281
|
+
# optional bytes next_token = 5;
|
282
|
+
# }
|
283
|
+
#
|
284
|
+
# message TableInBatchGetRowResponse {
|
285
|
+
# required string table_name = 1;
|
286
|
+
# repeated RowInBatchGetRowResponse rows = 2;
|
287
|
+
# }
|
288
|
+
#
|
289
|
+
# message BatchGetRowResponse {
|
290
|
+
# repeated TableInBatchGetRowResponse tables = 1;
|
291
|
+
# }
|
292
|
+
# /* ######################################################################################################### */
|
293
|
+
#
|
294
|
+
# /* ############################################# BatchWriteRow ############################################# */
|
295
|
+
#
|
296
|
+
# enum OperationType {
|
297
|
+
# PUT = 1;
|
298
|
+
# UPDATE = 2;
|
299
|
+
# DELETE = 3;
|
300
|
+
# }
|
301
|
+
#
|
302
|
+
# message RowInBatchWriteRowRequest {
|
303
|
+
# required OperationType type = 1;
|
304
|
+
# required bytes row_change = 2; // encoded as InplaceRowChangeSet
|
305
|
+
# required Condition condition = 3;
|
306
|
+
# optional ReturnContent return_content = 4;
|
307
|
+
# }
|
308
|
+
#
|
309
|
+
# message TableInBatchWriteRowRequest {
|
310
|
+
# required string table_name = 1;
|
311
|
+
# repeated RowInBatchWriteRowRequest rows = 2;
|
312
|
+
# }
|
313
|
+
#
|
314
|
+
# message BatchWriteRowRequest {
|
315
|
+
# repeated TableInBatchWriteRowRequest tables = 1;
|
316
|
+
# }
|
317
|
+
#
|
318
|
+
# message RowInBatchWriteRowResponse {
|
319
|
+
# required bool is_ok = 1;
|
320
|
+
# optional Error error = 2;
|
321
|
+
# optional ConsumedCapacity consumed = 3;
|
322
|
+
# optional bytes row = 4; // encoded as InplaceRowChangeSet
|
323
|
+
# }
|
324
|
+
#
|
325
|
+
# message TableInBatchWriteRowResponse {
|
326
|
+
# required string table_name = 1;
|
327
|
+
# repeated RowInBatchWriteRowResponse rows = 2;
|
328
|
+
# }
|
329
|
+
#
|
330
|
+
# message BatchWriteRowResponse {
|
331
|
+
# repeated TableInBatchWriteRowResponse tables = 1;
|
332
|
+
# }
|
333
|
+
# /* ########################################################################################################### */
|
334
|
+
#
|
335
|
+
# /* ############################################# GetRange ############################################# */
|
336
|
+
# enum Direction {
|
337
|
+
# FORWARD = 0;
|
338
|
+
# BACKWARD = 1;
|
339
|
+
# }
|
340
|
+
#
|
341
|
+
# /**
|
342
|
+
# * HBase支持以下参数:
|
343
|
+
# * 1. TimeRange或指定time
|
344
|
+
# * 2. Filter(根据列值或列名来过滤)
|
345
|
+
# * 我们只支持给同版本的选择条件。
|
346
|
+
# */
|
347
|
+
# message GetRangeRequest {
|
348
|
+
# required string table_name = 1;
|
349
|
+
# required Direction direction = 2;
|
350
|
+
# repeated string columns_to_get = 3; // 不指定则读出所有的列
|
351
|
+
# optional TimeRange time_range = 4;
|
352
|
+
# optional int32 max_versions = 5;
|
353
|
+
# optional int32 limit = 6;
|
354
|
+
# required bytes inclusive_start_primary_key = 7; // encoded as InplaceRowChangeSet, but only has primary key
|
355
|
+
# required bytes exclusive_end_primary_key = 8; // encoded as InplaceRowChangeSet, but only has primary key
|
356
|
+
# optional bytes filter = 10;
|
357
|
+
# optional string start_column = 11;
|
358
|
+
# optional string end_column = 12;
|
359
|
+
# optional bytes token = 13;
|
360
|
+
# }
|
361
|
+
#
|
362
|
+
# message GetRangeResponse {
|
363
|
+
# required ConsumedCapacity consumed = 1;
|
364
|
+
# required bytes rows = 2; // encoded as InplaceRowChangeSet
|
365
|
+
# optional bytes next_start_primary_key = 3; // 若为空,则代表数据全部读取完毕. encoded as InplaceRowChangeSet, but only has primary key
|
366
|
+
# optional bytes next_token = 4;
|
367
|
+
# }
|
368
|
+
# /* ###################################################################################################### */
|
369
|
+
#
|
370
|
+
|
371
|
+
require 'protobuf/message/message'
|
372
|
+
require 'protobuf/message/enum'
|
373
|
+
require 'protobuf/message/service'
|
374
|
+
require 'protobuf/message/extend'
|
375
|
+
|
376
|
+
INTEGER = 1
|
377
|
+
STRING = 2
|
378
|
+
BINARY = 3
|
379
|
+
AUTO_INCREMENT = 1
|
380
|
+
IGNORE = 0
|
381
|
+
EXPECT_EXIST = 1
|
382
|
+
EXPECT_NOT_EXIST = 2
|
383
|
+
RT_NONE = 0
|
384
|
+
RT_PK = 1
|
385
|
+
PUT = 1
|
386
|
+
UPDATE = 2
|
387
|
+
DELETE = 3
|
388
|
+
FORWARD = 0
|
389
|
+
BACKWARD = 1
|
390
|
+
|
391
|
+
class Error < ::Protobuf::Message
|
392
|
+
defined_in __FILE__
|
393
|
+
required :string, :code, 1
|
394
|
+
optional :string, :message, 2
|
395
|
+
end
|
396
|
+
class PrimaryKeyType < ::Protobuf::Enum
|
397
|
+
defined_in __FILE__
|
398
|
+
INTEGER = value(:INTEGER, 1)
|
399
|
+
STRING = value(:STRING, 2)
|
400
|
+
BINARY = value(:BINARY, 3)
|
401
|
+
end
|
402
|
+
class PrimaryKeyOption < ::Protobuf::Enum
|
403
|
+
defined_in __FILE__
|
404
|
+
AUTO_INCREMENT = value(:AUTO_INCREMENT, 1)
|
405
|
+
end
|
406
|
+
class PrimaryKeySchema < ::Protobuf::Message
|
407
|
+
defined_in __FILE__
|
408
|
+
required :string, :name, 1
|
409
|
+
required :PrimaryKeyType, :type, 2
|
410
|
+
optional :PrimaryKeyOption, :option, 3
|
411
|
+
end
|
412
|
+
class PartitionRange < ::Protobuf::Message
|
413
|
+
defined_in __FILE__
|
414
|
+
required :bytes, :begin, 1
|
415
|
+
required :bytes, :end, 2
|
416
|
+
end
|
417
|
+
class TableOptions < ::Protobuf::Message
|
418
|
+
defined_in __FILE__
|
419
|
+
optional :int32, :time_to_live, 1
|
420
|
+
optional :int32, :max_versions, 2
|
421
|
+
optional :int64, :deviation_cell_version_in_sec, 5
|
422
|
+
end
|
423
|
+
class TableMeta < ::Protobuf::Message
|
424
|
+
defined_in __FILE__
|
425
|
+
required :string, :table_name, 1
|
426
|
+
repeated :PrimaryKeySchema, :primary_key, 2
|
427
|
+
end
|
428
|
+
class RowExistenceExpectation < ::Protobuf::Enum
|
429
|
+
defined_in __FILE__
|
430
|
+
IGNORE = value(:IGNORE, 0)
|
431
|
+
EXPECT_EXIST = value(:EXPECT_EXIST, 1)
|
432
|
+
EXPECT_NOT_EXIST = value(:EXPECT_NOT_EXIST, 2)
|
433
|
+
end
|
434
|
+
class Condition < ::Protobuf::Message
|
435
|
+
defined_in __FILE__
|
436
|
+
required :RowExistenceExpectation, :row_existence, 1
|
437
|
+
optional :bytes, :column_condition, 2
|
438
|
+
end
|
439
|
+
class CapacityUnit < ::Protobuf::Message
|
440
|
+
defined_in __FILE__
|
441
|
+
optional :int32, :read, 1
|
442
|
+
optional :int32, :write, 2
|
443
|
+
end
|
444
|
+
class ReservedThroughputDetails < ::Protobuf::Message
|
445
|
+
defined_in __FILE__
|
446
|
+
required :CapacityUnit, :capacity_unit, 1
|
447
|
+
required :int64, :last_increase_time, 2
|
448
|
+
optional :int64, :last_decrease_time, 3
|
449
|
+
end
|
450
|
+
class ReservedThroughput < ::Protobuf::Message
|
451
|
+
defined_in __FILE__
|
452
|
+
required :CapacityUnit, :capacity_unit, 1
|
453
|
+
end
|
454
|
+
class ConsumedCapacity < ::Protobuf::Message
|
455
|
+
defined_in __FILE__
|
456
|
+
required :CapacityUnit, :capacity_unit, 1
|
457
|
+
end
|
458
|
+
class CreateTableRequest < ::Protobuf::Message
|
459
|
+
defined_in __FILE__
|
460
|
+
required :TableMeta, :table_meta, 1
|
461
|
+
required :ReservedThroughput, :reserved_throughput, 2
|
462
|
+
optional :TableOptions, :table_options, 3
|
463
|
+
repeated :PartitionRange, :partitions, 4
|
464
|
+
end
|
465
|
+
class CreateTableResponse < ::Protobuf::Message
|
466
|
+
defined_in __FILE__
|
467
|
+
end
|
468
|
+
class UpdateTableRequest < ::Protobuf::Message
|
469
|
+
defined_in __FILE__
|
470
|
+
required :string, :table_name, 1
|
471
|
+
optional :ReservedThroughput, :reserved_throughput, 2
|
472
|
+
optional :TableOptions, :table_options, 3
|
473
|
+
end
|
474
|
+
class UpdateTableResponse < ::Protobuf::Message
|
475
|
+
defined_in __FILE__
|
476
|
+
required :ReservedThroughputDetails, :reserved_throughput_details, 1
|
477
|
+
required :TableOptions, :table_options, 2
|
478
|
+
end
|
479
|
+
class DescribeTableRequest < ::Protobuf::Message
|
480
|
+
defined_in __FILE__
|
481
|
+
required :string, :table_name, 1
|
482
|
+
end
|
483
|
+
class DescribeTableResponse < ::Protobuf::Message
|
484
|
+
defined_in __FILE__
|
485
|
+
required :TableMeta, :table_meta, 1
|
486
|
+
required :ReservedThroughputDetails, :reserved_throughput_details, 2
|
487
|
+
required :TableOptions, :table_options, 3
|
488
|
+
repeated :bytes, :shard_splits, 6
|
489
|
+
end
|
490
|
+
class ListTableRequest < ::Protobuf::Message
|
491
|
+
defined_in __FILE__
|
492
|
+
end
|
493
|
+
class ListTableResponse < ::Protobuf::Message
|
494
|
+
defined_in __FILE__
|
495
|
+
repeated :string, :table_names, 1
|
496
|
+
end
|
497
|
+
class DeleteTableRequest < ::Protobuf::Message
|
498
|
+
defined_in __FILE__
|
499
|
+
required :string, :table_name, 1
|
500
|
+
end
|
501
|
+
class DeleteTableResponse < ::Protobuf::Message
|
502
|
+
defined_in __FILE__
|
503
|
+
end
|
504
|
+
class LoadTableRequest < ::Protobuf::Message
|
505
|
+
defined_in __FILE__
|
506
|
+
required :string, :table_name, 1
|
507
|
+
end
|
508
|
+
class LoadTableResponse < ::Protobuf::Message
|
509
|
+
defined_in __FILE__
|
510
|
+
end
|
511
|
+
class UnloadTableRequest < ::Protobuf::Message
|
512
|
+
defined_in __FILE__
|
513
|
+
required :string, :table_name, 1
|
514
|
+
end
|
515
|
+
class UnloadTableResponse < ::Protobuf::Message
|
516
|
+
defined_in __FILE__
|
517
|
+
end
|
518
|
+
class TimeRange < ::Protobuf::Message
|
519
|
+
defined_in __FILE__
|
520
|
+
optional :int64, :start_time, 1
|
521
|
+
optional :int64, :end_time, 2
|
522
|
+
optional :int64, :specific_time, 3
|
523
|
+
end
|
524
|
+
class ReturnType < ::Protobuf::Enum
|
525
|
+
defined_in __FILE__
|
526
|
+
RT_NONE = value(:RT_NONE, 0)
|
527
|
+
RT_PK = value(:RT_PK, 1)
|
528
|
+
end
|
529
|
+
class ReturnContent < ::Protobuf::Message
|
530
|
+
defined_in __FILE__
|
531
|
+
optional :ReturnType, :return_type, 1
|
532
|
+
end
|
533
|
+
class GetRowRequest < ::Protobuf::Message
|
534
|
+
defined_in __FILE__
|
535
|
+
required :string, :table_name, 1
|
536
|
+
required :bytes, :primary_key, 2
|
537
|
+
repeated :string, :columns_to_get, 3
|
538
|
+
optional :TimeRange, :time_range, 4
|
539
|
+
optional :int32, :max_versions, 5
|
540
|
+
optional :bytes, :filter, 7
|
541
|
+
optional :string, :start_column, 8
|
542
|
+
optional :string, :end_column, 9
|
543
|
+
optional :bytes, :token, 10
|
544
|
+
end
|
545
|
+
class GetRowResponse < ::Protobuf::Message
|
546
|
+
defined_in __FILE__
|
547
|
+
required :ConsumedCapacity, :consumed, 1
|
548
|
+
required :bytes, :row, 2
|
549
|
+
optional :bytes, :next_token, 3
|
550
|
+
end
|
551
|
+
class UpdateRowRequest < ::Protobuf::Message
|
552
|
+
defined_in __FILE__
|
553
|
+
required :string, :table_name, 1
|
554
|
+
required :bytes, :row_change, 2
|
555
|
+
required :Condition, :condition, 3
|
556
|
+
optional :ReturnContent, :return_content, 4
|
557
|
+
end
|
558
|
+
class UpdateRowResponse < ::Protobuf::Message
|
559
|
+
defined_in __FILE__
|
560
|
+
required :ConsumedCapacity, :consumed, 1
|
561
|
+
optional :bytes, :row, 2
|
562
|
+
end
|
563
|
+
class PutRowRequest < ::Protobuf::Message
|
564
|
+
defined_in __FILE__
|
565
|
+
required :string, :table_name, 1
|
566
|
+
required :bytes, :row, 2
|
567
|
+
required :Condition, :condition, 3
|
568
|
+
optional :ReturnContent, :return_content, 4
|
569
|
+
end
|
570
|
+
class PutRowResponse < ::Protobuf::Message
|
571
|
+
defined_in __FILE__
|
572
|
+
required :ConsumedCapacity, :consumed, 1
|
573
|
+
optional :bytes, :row, 2
|
574
|
+
end
|
575
|
+
class DeleteRowRequest < ::Protobuf::Message
|
576
|
+
defined_in __FILE__
|
577
|
+
required :string, :table_name, 1
|
578
|
+
required :bytes, :primary_key, 2
|
579
|
+
required :Condition, :condition, 3
|
580
|
+
optional :ReturnContent, :return_content, 4
|
581
|
+
end
|
582
|
+
class DeleteRowResponse < ::Protobuf::Message
|
583
|
+
defined_in __FILE__
|
584
|
+
required :ConsumedCapacity, :consumed, 1
|
585
|
+
optional :bytes, :row, 2
|
586
|
+
end
|
587
|
+
class TableInBatchGetRowRequest < ::Protobuf::Message
|
588
|
+
defined_in __FILE__
|
589
|
+
required :string, :table_name, 1
|
590
|
+
repeated :bytes, :primary_key, 2
|
591
|
+
repeated :bytes, :token, 3
|
592
|
+
repeated :string, :columns_to_get, 4
|
593
|
+
optional :TimeRange, :time_range, 5
|
594
|
+
optional :int32, :max_versions, 6
|
595
|
+
optional :bytes, :filter, 8
|
596
|
+
optional :string, :start_column, 9
|
597
|
+
optional :string, :end_column, 10
|
598
|
+
end
|
599
|
+
class BatchGetRowRequest < ::Protobuf::Message
|
600
|
+
defined_in __FILE__
|
601
|
+
repeated :TableInBatchGetRowRequest, :tables, 1
|
602
|
+
end
|
603
|
+
class RowInBatchGetRowResponse < ::Protobuf::Message
|
604
|
+
defined_in __FILE__
|
605
|
+
required :bool, :is_ok, 1
|
606
|
+
optional :Error, :error, 2
|
607
|
+
optional :ConsumedCapacity, :consumed, 3
|
608
|
+
optional :bytes, :row, 4
|
609
|
+
optional :bytes, :next_token, 5
|
610
|
+
end
|
611
|
+
class TableInBatchGetRowResponse < ::Protobuf::Message
|
612
|
+
defined_in __FILE__
|
613
|
+
required :string, :table_name, 1
|
614
|
+
repeated :RowInBatchGetRowResponse, :rows, 2
|
615
|
+
end
|
616
|
+
class BatchGetRowResponse < ::Protobuf::Message
|
617
|
+
defined_in __FILE__
|
618
|
+
repeated :TableInBatchGetRowResponse, :tables, 1
|
619
|
+
end
|
620
|
+
class OperationType < ::Protobuf::Enum
|
621
|
+
defined_in __FILE__
|
622
|
+
PUT = value(:PUT, 1)
|
623
|
+
UPDATE = value(:UPDATE, 2)
|
624
|
+
DELETE = value(:DELETE, 3)
|
625
|
+
end
|
626
|
+
class RowInBatchWriteRowRequest < ::Protobuf::Message
|
627
|
+
defined_in __FILE__
|
628
|
+
required :OperationType, :type, 1
|
629
|
+
required :bytes, :row_change, 2
|
630
|
+
required :Condition, :condition, 3
|
631
|
+
optional :ReturnContent, :return_content, 4
|
632
|
+
end
|
633
|
+
class TableInBatchWriteRowRequest < ::Protobuf::Message
|
634
|
+
defined_in __FILE__
|
635
|
+
required :string, :table_name, 1
|
636
|
+
repeated :RowInBatchWriteRowRequest, :rows, 2
|
637
|
+
end
|
638
|
+
class BatchWriteRowRequest < ::Protobuf::Message
|
639
|
+
defined_in __FILE__
|
640
|
+
repeated :TableInBatchWriteRowRequest, :tables, 1
|
641
|
+
end
|
642
|
+
class RowInBatchWriteRowResponse < ::Protobuf::Message
|
643
|
+
defined_in __FILE__
|
644
|
+
required :bool, :is_ok, 1
|
645
|
+
optional :Error, :error, 2
|
646
|
+
optional :ConsumedCapacity, :consumed, 3
|
647
|
+
optional :bytes, :row, 4
|
648
|
+
end
|
649
|
+
class TableInBatchWriteRowResponse < ::Protobuf::Message
|
650
|
+
defined_in __FILE__
|
651
|
+
required :string, :table_name, 1
|
652
|
+
repeated :RowInBatchWriteRowResponse, :rows, 2
|
653
|
+
end
|
654
|
+
class BatchWriteRowResponse < ::Protobuf::Message
|
655
|
+
defined_in __FILE__
|
656
|
+
repeated :TableInBatchWriteRowResponse, :tables, 1
|
657
|
+
end
|
658
|
+
class Direction < ::Protobuf::Enum
|
659
|
+
defined_in __FILE__
|
660
|
+
FORWARD = value(:FORWARD, 0)
|
661
|
+
BACKWARD = value(:BACKWARD, 1)
|
662
|
+
end
|
663
|
+
class GetRangeRequest < ::Protobuf::Message
|
664
|
+
defined_in __FILE__
|
665
|
+
required :string, :table_name, 1
|
666
|
+
required :Direction, :direction, 2
|
667
|
+
repeated :string, :columns_to_get, 3
|
668
|
+
optional :TimeRange, :time_range, 4
|
669
|
+
optional :int32, :max_versions, 5
|
670
|
+
optional :int32, :limit, 6
|
671
|
+
required :bytes, :inclusive_start_primary_key, 7
|
672
|
+
required :bytes, :exclusive_end_primary_key, 8
|
673
|
+
optional :bytes, :filter, 10
|
674
|
+
optional :string, :start_column, 11
|
675
|
+
optional :string, :end_column, 12
|
676
|
+
optional :bytes, :token, 13
|
677
|
+
end
|
678
|
+
class GetRangeResponse < ::Protobuf::Message
|
679
|
+
defined_in __FILE__
|
680
|
+
required :ConsumedCapacity, :consumed, 1
|
681
|
+
required :bytes, :rows, 2
|
682
|
+
optional :bytes, :next_start_primary_key, 3
|
683
|
+
optional :bytes, :next_token, 4
|
684
|
+
end
|