google-cloud-bigtable 2.6.1 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/CONTRIBUTING.md +328 -115
  4. data/OVERVIEW.md +1 -1
  5. data/lib/google/cloud/bigtable/app_profile/job.rb +4 -4
  6. data/lib/google/cloud/bigtable/app_profile/list.rb +5 -7
  7. data/lib/google/cloud/bigtable/app_profile.rb +20 -21
  8. data/lib/google/cloud/bigtable/backup/job.rb +8 -8
  9. data/lib/google/cloud/bigtable/backup/list.rb +9 -11
  10. data/lib/google/cloud/bigtable/backup.rb +36 -36
  11. data/lib/google/cloud/bigtable/cluster/job.rb +2 -2
  12. data/lib/google/cloud/bigtable/cluster.rb +15 -15
  13. data/lib/google/cloud/bigtable/column_family.rb +2 -2
  14. data/lib/google/cloud/bigtable/column_family_map.rb +14 -14
  15. data/lib/google/cloud/bigtable/column_range.rb +7 -7
  16. data/lib/google/cloud/bigtable/encryption_info.rb +4 -4
  17. data/lib/google/cloud/bigtable/gc_rule.rb +20 -20
  18. data/lib/google/cloud/bigtable/instance/cluster_map.rb +6 -6
  19. data/lib/google/cloud/bigtable/instance/job.rb +4 -4
  20. data/lib/google/cloud/bigtable/instance.rb +40 -40
  21. data/lib/google/cloud/bigtable/mutation_entry.rb +21 -21
  22. data/lib/google/cloud/bigtable/mutation_operations.rb +34 -34
  23. data/lib/google/cloud/bigtable/policy.rb +4 -4
  24. data/lib/google/cloud/bigtable/project.rb +15 -15
  25. data/lib/google/cloud/bigtable/read_operations.rb +31 -31
  26. data/lib/google/cloud/bigtable/routing_policy.rb +6 -6
  27. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +30 -29
  28. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
  29. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +27 -26
  30. data/lib/google/cloud/bigtable/row_filter.rb +28 -28
  31. data/lib/google/cloud/bigtable/row_range.rb +18 -18
  32. data/lib/google/cloud/bigtable/sample_row_key.rb +1 -1
  33. data/lib/google/cloud/bigtable/status.rb +2 -2
  34. data/lib/google/cloud/bigtable/table/cluster_state.rb +1 -1
  35. data/lib/google/cloud/bigtable/table/list.rb +2 -2
  36. data/lib/google/cloud/bigtable/table/restore_job.rb +12 -12
  37. data/lib/google/cloud/bigtable/table.rb +34 -34
  38. data/lib/google/cloud/bigtable/value_range.rb +18 -18
  39. data/lib/google/cloud/bigtable/version.rb +1 -1
  40. data/lib/google/cloud/bigtable.rb +2 -0
  41. metadata +3 -3
@@ -50,28 +50,28 @@ module Google
50
50
  #
51
51
  # bigtable = Google::Cloud::Bigtable.new
52
52
  #
53
- # table = bigtable.table("my-instance", "my-table")
53
+ # table = bigtable.table "my-instance", "my-table"
54
54
  #
55
- # entry = table.new_mutation_entry("user-1")
56
- # entry.set_cell("cf1", "field1", "XYZ")
57
- # table.mutate_row(entry)
55
+ # entry = table.new_mutation_entry "user-1"
56
+ # entry.set_cell "cf1", "field1", "XYZ"
57
+ # table.mutate_row entry
58
58
  #
59
59
  # @example Multiple mutations on row.
60
60
  # require "google/cloud/bigtable"
61
61
  #
62
62
  # bigtable = Google::Cloud::Bigtable.new
63
63
  #
64
- # table = bigtable.table("my-instance", "my-table")
64
+ # table = bigtable.table "my-instance", "my-table"
65
65
  #
66
- # entry = table.new_mutation_entry("user-1")
66
+ # entry = table.new_mutation_entry "user-1"
67
67
  # entry.set_cell(
68
68
  # "cf1",
69
69
  # "field1",
70
70
  # "XYZ",
71
- # timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
72
- # ).delete_cells("cf2", "field02")
71
+ # timestamp: (Time.now.to_f * 1_000_000).round(-3) # microseconds
72
+ # ).delete_cells "cf2", "field02"
73
73
  #
74
- # table.mutate_row(entry)
74
+ # table.mutate_row entry
75
75
  #
76
76
  def mutate_row entry
77
77
  service.mutate_row path, entry.row_key, entry.mutations, app_profile_id: @app_profile_id
@@ -96,12 +96,12 @@ module Google
96
96
  #
97
97
  # bigtable = Google::Cloud::Bigtable.new
98
98
  #
99
- # table = bigtable.table("my-instance", "my-table")
99
+ # table = bigtable.table "my-instance", "my-table"
100
100
  #
101
101
  # entries = []
102
102
  # entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ")
103
103
  # entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC")
104
- # responses = table.mutate_rows(entries)
104
+ # responses = table.mutate_rows entries
105
105
  #
106
106
  # responses.each do |response|
107
107
  # puts response.status.description
@@ -131,15 +131,15 @@ module Google
131
131
  # require "google/cloud/bigtable"
132
132
  #
133
133
  # bigtable = Google::Cloud::Bigtable.new
134
- # table = bigtable.table("my-instance", "my-table")
134
+ # table = bigtable.table "my-instance", "my-table"
135
135
  #
136
- # rule_1 = table.new_read_modify_write_rule("cf", "field01")
137
- # rule_1.append("append-xyz")
136
+ # rule_1 = table.new_read_modify_write_rule "cf", "field01"
137
+ # rule_1.append "append-xyz"
138
138
  #
139
- # rule_2 = table.new_read_modify_write_rule("cf", "field01")
140
- # rule_2.increment(1)
139
+ # rule_2 = table.new_read_modify_write_rule "cf", "field01"
140
+ # rule_2.increment 1
141
141
  #
142
- # row = table.read_modify_write_row("user01", [rule_1, rule_2])
142
+ # row = table.read_modify_write_row "user01", [rule_1, rule_2]
143
143
  #
144
144
  # puts row.cells
145
145
  #
@@ -147,11 +147,11 @@ module Google
147
147
  # require "google/cloud/bigtable"
148
148
  #
149
149
  # bigtable = Google::Cloud::Bigtable.new
150
- # table = bigtable.table("my-instance", "my-table")
150
+ # table = bigtable.table "my-instance", "my-table"
151
151
  #
152
152
  # rule = table.new_read_modify_write_rule("cf", "field01").append("append-xyz")
153
153
  #
154
- # row = table.read_modify_write_row("user01", rule)
154
+ # row = table.read_modify_write_row "user01", rule
155
155
  #
156
156
  # puts row.cells
157
157
  #
@@ -214,19 +214,19 @@ module Google
214
214
  # require "google/cloud/bigtable"
215
215
  #
216
216
  # bigtable = Google::Cloud::Bigtable.new
217
- # table = bigtable.table("my-instance", "my-table")
217
+ # table = bigtable.table "my-instance", "my-table"
218
218
  #
219
- # predicate_filter = Google::Cloud::Bigtable::RowFilter.key("user-10")
219
+ # predicate_filter = Google::Cloud::Bigtable::RowFilter.key "user-10"
220
220
  # on_match_mutations = Google::Cloud::Bigtable::MutationEntry.new
221
221
  # on_match_mutations.set_cell(
222
222
  # "cf1",
223
223
  # "field1",
224
224
  # "XYZ",
225
- # timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
226
- # ).delete_cells("cf2", "field02")
225
+ # timestamp: (Time.now.to_f * 1_000_000).round(-3) # microseconds
226
+ # ).delete_cells "cf2", "field02"
227
227
  #
228
228
  # otherwise_mutations = Google::Cloud::Bigtable::MutationEntry.new
229
- # otherwise_mutations.delete_from_family("cf3")
229
+ # otherwise_mutations.delete_from_family "cf3"
230
230
  #
231
231
  # predicate_matched = table.check_and_mutate_row(
232
232
  # "user01",
@@ -264,9 +264,9 @@ module Google
264
264
  # require "google/cloud/bigtable"
265
265
  #
266
266
  # bigtable = Google::Cloud::Bigtable.new
267
- # table = bigtable.table("my-instance", "my-table")
267
+ # table = bigtable.table "my-instance", "my-table"
268
268
  #
269
- # entry = table.new_mutation_entry("row-key-1")
269
+ # entry = table.new_mutation_entry "row-key-1"
270
270
  #
271
271
  # # Without row key
272
272
  # entry = table.new_mutation_entry
@@ -289,17 +289,17 @@ module Google
289
289
  # require "google/cloud/bigtable"
290
290
  #
291
291
  # bigtable = Google::Cloud::Bigtable.new
292
- # table = bigtable.table("my-instance", "my-table")
293
- # rule = table.new_read_modify_write_rule("cf", "qualifier-1")
294
- # rule.append("append-xyz")
292
+ # table = bigtable.table "my-instance", "my-table"
293
+ # rule = table.new_read_modify_write_rule "cf", "qualifier-1"
294
+ # rule.append "append-xyz"
295
295
  #
296
296
  # @example Create rule to increment qualifier value.
297
297
  # require "google/cloud/bigtable"
298
298
  #
299
299
  # bigtable = Google::Cloud::Bigtable.new
300
- # table = bigtable.table("my-instance", "my-table")
301
- # rule = table.new_read_modify_write_rule("cf", "qualifier-1")
302
- # rule.increment(100)
300
+ # table = bigtable.table "my-instance", "my-table"
301
+ # rule = table.new_read_modify_write_rule "cf", "qualifier-1"
302
+ # rule.increment 100
303
303
  #
304
304
  def new_read_modify_write_rule family, qualifier
305
305
  Google::Cloud::Bigtable::ReadModifyWriteRule.new family, qualifier
@@ -323,12 +323,12 @@ module Google
323
323
  #
324
324
  # bigtable = Google::Cloud::Bigtable.new
325
325
  #
326
- # table = bigtable.table("my-instance", "my-table")
326
+ # table = bigtable.table "my-instance", "my-table"
327
327
  #
328
328
  # entries = []
329
329
  # entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ")
330
330
  # entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC")
331
- # responses = table.mutate_rows(entries)
331
+ # responses = table.mutate_rows entries
332
332
  #
333
333
  # responses.each do |response|
334
334
  # puts response.status.description
@@ -49,8 +49,8 @@ module Google
49
49
  # instance = bigtable.instance "my-instance"
50
50
  #
51
51
  # policy = instance.policy
52
- # policy.remove("roles/owner", "user:owner@example.com")
53
- # policy.add("roles/owner", "user:newowner@example.com")
52
+ # policy.remove "roles/owner", "user:owner@example.com"
53
+ # policy.add "roles/owner", "user:newowner@example.com"
54
54
  # policy.roles["roles/viewer"] = ["allUsers"]
55
55
  #
56
56
  class Policy
@@ -85,7 +85,7 @@ module Google
85
85
  # instance = bigtable.instance "my-instance"
86
86
  #
87
87
  # policy = instance.policy
88
- # policy.add("roles/owner", "user:newowner@example.com")
88
+ # policy.add "roles/owner", "user:newowner@example.com"
89
89
  #
90
90
  def add role_name, member
91
91
  role(role_name) << member
@@ -111,7 +111,7 @@ module Google
111
111
  # instance = bigtable.instance "my-instance"
112
112
  #
113
113
  # policy = instance.policy
114
- # policy.remove("roles/owner", "user:newowner@example.com")
114
+ # policy.remove "roles/owner", "user:newowner@example.com"
115
115
  #
116
116
  def remove role_name, member
117
117
  role(role_name).delete member
@@ -46,7 +46,7 @@ module Google
46
46
  #
47
47
  # bigtable = Google::Cloud::Bigtable.new
48
48
  #
49
- # instance = bigtable.instance("my-instance")
49
+ # instance = bigtable.instance "my-instance"
50
50
  # clusters = bigtable.clusters # All clusters in the project
51
51
  #
52
52
  class Project
@@ -117,7 +117,7 @@ module Google
117
117
  #
118
118
  # bigtable = Google::Cloud::Bigtable.new
119
119
  #
120
- # instance = bigtable.instance("my-instance")
120
+ # instance = bigtable.instance "my-instance"
121
121
  #
122
122
  # if instance
123
123
  # puts instance.instance_id
@@ -181,9 +181,9 @@ module Google
181
181
  # "my-instance",
182
182
  # display_name: "Instance for user data",
183
183
  # type: :DEVELOPMENT,
184
- # labels: { "env" => "dev"}
184
+ # labels: { "env" => "dev" }
185
185
  # ) do |clusters|
186
- # clusters.add("test-cluster", "us-east1-b") # nodes not allowed
186
+ # clusters.add "test-cluster", "us-east1-b" # nodes not allowed
187
187
  # end
188
188
  #
189
189
  # job.done? #=> false
@@ -206,9 +206,9 @@ module Google
206
206
  # job = bigtable.create_instance(
207
207
  # "my-instance",
208
208
  # display_name: "Instance for user data",
209
- # labels: { "env" => "dev"}
209
+ # labels: { "env" => "dev" }
210
210
  # ) do |clusters|
211
- # clusters.add("test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD)
211
+ # clusters.add "test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD
212
212
  # end
213
213
  #
214
214
  # job.done? #=> false
@@ -314,14 +314,14 @@ module Google
314
314
  #
315
315
  # bigtable = Google::Cloud::Bigtable.new
316
316
  #
317
- # table = bigtable.table("my-instance", "my-table")
317
+ # table = bigtable.table "my-instance", "my-table"
318
318
  #
319
319
  # @example Retrieve a table with a schema-only view.
320
320
  # require "google/cloud/bigtable"
321
321
  #
322
322
  # bigtable = Google::Cloud::Bigtable.new
323
323
  #
324
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
324
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
325
325
  # if table
326
326
  # puts table.name
327
327
  # puts table.column_families
@@ -332,7 +332,7 @@ module Google
332
332
  #
333
333
  # bigtable = Google::Cloud::Bigtable.new
334
334
  #
335
- # table = bigtable.table("my-instance", "my-table", view: :FULL, perform_lookup: true)
335
+ # table = bigtable.table "my-instance", "my-table", view: :FULL, perform_lookup: true
336
336
  # if table
337
337
  # puts table.name
338
338
  # puts table.column_families
@@ -402,7 +402,7 @@ module Google
402
402
  #
403
403
  # bigtable = Google::Cloud::Bigtable.new
404
404
  #
405
- # table = bigtable.create_table("my-instance", "my-table")
405
+ # table = bigtable.create_table "my-instance", "my-table"
406
406
  # puts table.name
407
407
  #
408
408
  # @example Create a table with initial splits and column families.
@@ -411,15 +411,15 @@ module Google
411
411
  # bigtable = Google::Cloud::Bigtable.new
412
412
  #
413
413
  # initial_splits = ["user-00001", "user-100000", "others"]
414
- # table = bigtable.create_table("my-instance", "my-table", initial_splits: initial_splits) do |cfm|
415
- # cfm.add('cf1', gc_rule: Google::Cloud::Bigtable::GcRule.max_versions(5))
416
- # cfm.add('cf2', gc_rule: Google::Cloud::Bigtable::GcRule.max_age(600))
414
+ # table = bigtable.create_table "my-instance", "my-table", initial_splits: initial_splits do |cfm|
415
+ # cfm.add "cf1", gc_rule: Google::Cloud::Bigtable::GcRule.max_versions(5)
416
+ # cfm.add "cf2", gc_rule: Google::Cloud::Bigtable::GcRule.max_age(600)
417
417
  #
418
418
  # gc_rule = Google::Cloud::Bigtable::GcRule.union(
419
419
  # Google::Cloud::Bigtable::GcRule.max_age(1800),
420
420
  # Google::Cloud::Bigtable::GcRule.max_versions(3)
421
421
  # )
422
- # cfm.add('cf3', gc_rule: gc_rule)
422
+ # cfm.add "cf3", gc_rule: gc_rule
423
423
  # end
424
424
  #
425
425
  # puts table
@@ -450,7 +450,7 @@ module Google
450
450
  #
451
451
  # bigtable = Google::Cloud::Bigtable.new
452
452
  #
453
- # bigtable.delete_table("my-instance", "my-table")
453
+ # bigtable.delete_table "my-instance", "my-table"
454
454
  #
455
455
  def delete_table instance_id, table_id
456
456
  service.delete_table instance_id, table_id
@@ -50,7 +50,7 @@ module Google
50
50
  # require "google/cloud/bigtable"
51
51
  #
52
52
  # bigtable = Google::Cloud::Bigtable.new
53
- # table = bigtable.table("my-instance", "my-table")
53
+ # table = bigtable.table "my-instance", "my-table"
54
54
  #
55
55
  # table.sample_row_keys.each do |sample_row_key|
56
56
  # p sample_row_key.key # user00116
@@ -90,7 +90,7 @@ module Google
90
90
  # require "google/cloud/bigtable"
91
91
  #
92
92
  # bigtable = Google::Cloud::Bigtable.new
93
- # table = bigtable.table("my-instance", "my-table")
93
+ # table = bigtable.table "my-instance", "my-table"
94
94
  #
95
95
  # table.read_rows(limit: 10).each do |row|
96
96
  # puts row
@@ -100,7 +100,7 @@ module Google
100
100
  # require "google/cloud/bigtable"
101
101
  #
102
102
  # bigtable = Google::Cloud::Bigtable.new
103
- # table = bigtable.table("my-instance", "my-table")
103
+ # table = bigtable.table "my-instance", "my-table"
104
104
  #
105
105
  # table.read_rows(keys: ["user-1", "user-2"]).each do |row|
106
106
  # puts row
@@ -110,9 +110,9 @@ module Google
110
110
  # require "google/cloud/bigtable"
111
111
  #
112
112
  # bigtable = Google::Cloud::Bigtable.new
113
- # table = bigtable.table("my-instance", "my-table")
113
+ # table = bigtable.table "my-instance", "my-table"
114
114
  #
115
- # range = table.new_row_range.between("user-1", "user-100")
115
+ # range = table.new_row_range.between "user-1", "user-100"
116
116
  #
117
117
  # table.read_rows(ranges: range).each do |row|
118
118
  # puts row
@@ -122,11 +122,11 @@ module Google
122
122
  # require "google/cloud/bigtable"
123
123
  #
124
124
  # bigtable = Google::Cloud::Bigtable.new
125
- # table = bigtable.table("my-instance", "my-table")
125
+ # table = bigtable.table "my-instance", "my-table"
126
126
  #
127
- # filter = table.filter.key("user-*")
127
+ # filter = table.filter.key "user-*"
128
128
  # # OR
129
- # # filter = Google::Cloud::Bigtable::RowFilter.key("user-*")
129
+ # # filter = Google::Cloud::Bigtable::RowFilter.key "user-*"
130
130
  #
131
131
  # table.read_rows(filter: filter).each do |row|
132
132
  # puts row
@@ -136,11 +136,11 @@ module Google
136
136
  # require "google/cloud/bigtable"
137
137
  #
138
138
  # bigtable = Google::Cloud::Bigtable.new
139
- # table = bigtable.table("my-instance", "my-table")
139
+ # table = bigtable.table "my-instance", "my-table"
140
140
  #
141
- # filter = table.filter.key("user-*")
141
+ # filter = table.filter.key "user-*"
142
142
  # # OR
143
- # # filter = Google::Cloud::Bigtable::RowFilter.key("user-*")
143
+ # # filter = Google::Cloud::Bigtable::RowFilter.key "user-*"
144
144
  #
145
145
  # table.read_rows(filter: filter, limit: 10).each do |row|
146
146
  # puts row
@@ -176,19 +176,19 @@ module Google
176
176
  # require "google/cloud/bigtable"
177
177
  #
178
178
  # bigtable = Google::Cloud::Bigtable.new
179
- # table = bigtable.table("my-instance", "my-table")
179
+ # table = bigtable.table "my-instance", "my-table"
180
180
  #
181
- # row = table.read_row("user-1")
181
+ # row = table.read_row "user-1"
182
182
  #
183
183
  # @example Read row with filter.
184
184
  # require "google/cloud/bigtable"
185
185
  #
186
186
  # bigtable = Google::Cloud::Bigtable.new
187
- # table = bigtable.table("my-instance", "my-table")
187
+ # table = bigtable.table "my-instance", "my-table"
188
188
  #
189
- # filter = Google::Cloud::Bigtable::RowFilter.cells_per_row(3)
189
+ # filter = Google::Cloud::Bigtable::RowFilter.cells_per_row 3
190
190
  #
191
- # row = table.read_row("user-1", filter: filter)
191
+ # row = table.read_row "user-1", filter: filter
192
192
  #
193
193
  def read_row key, filter: nil
194
194
  read_rows(keys: [key], filter: filter).first
@@ -203,11 +203,11 @@ module Google
203
203
  # require "google/cloud/bigtable"
204
204
  #
205
205
  # bigtable = Google::Cloud::Bigtable.new
206
- # table = bigtable.table("my-instance", "my-table")
206
+ # table = bigtable.table "my-instance", "my-table"
207
207
  #
208
208
  # range = table.new_value_range
209
- # range.from("abc")
210
- # range.to("xyz")
209
+ # range.from "abc"
210
+ # range.to "xyz"
211
211
  #
212
212
  # # OR
213
213
  # range = table.new_value_range.from("abc").to("xyz")
@@ -216,7 +216,7 @@ module Google
216
216
  # require "google/cloud/bigtable"
217
217
  #
218
218
  # bigtable = Google::Cloud::Bigtable.new
219
- # table = bigtable.table("my-instance", "my-table")
219
+ # table = bigtable.table "my-instance", "my-table"
220
220
  #
221
221
  # range = table.new_value_range.from("abc", inclusive: false).to("xyz")
222
222
  #
@@ -234,11 +234,11 @@ module Google
234
234
  # require "google/cloud/bigtable"
235
235
  #
236
236
  # bigtable = Google::Cloud::Bigtable.new
237
- # table = bigtable.table("my-instance", "my-table")
237
+ # table = bigtable.table "my-instance", "my-table"
238
238
  #
239
- # range = table.new_column_range("test-family")
240
- # range.from("abc")
241
- # range.to("xyz")
239
+ # range = table.new_column_range "test-family"
240
+ # range.from "abc"
241
+ # range.to "xyz"
242
242
  #
243
243
  # # OR
244
244
  # range = table.new_column_range("test-family").from("key-1").to("key-5")
@@ -247,7 +247,7 @@ module Google
247
247
  # require "google/cloud/bigtable"
248
248
  #
249
249
  # bigtable = Google::Cloud::Bigtable.new
250
- # table = bigtable.table("my-instance", "my-table")
250
+ # table = bigtable.table "my-instance", "my-table"
251
251
  #
252
252
  # range = table.new_column_range("test-family").from("key-1", inclusive: false).to("key-5")
253
253
  #
@@ -264,11 +264,11 @@ module Google
264
264
  # require "google/cloud/bigtable"
265
265
  #
266
266
  # bigtable = Google::Cloud::Bigtable.new
267
- # table = bigtable.table("my-instance", "my-table")
267
+ # table = bigtable.table "my-instance", "my-table"
268
268
  #
269
269
  # range = table.new_row_range
270
- # range.from("abc")
271
- # range.to("xyz")
270
+ # range.from "abc"
271
+ # range.to "xyz"
272
272
  #
273
273
  # # OR
274
274
  # range = table.new_row_range.from("key-1").to("key-5")
@@ -277,7 +277,7 @@ module Google
277
277
  # require "google/cloud/bigtable"
278
278
  #
279
279
  # bigtable = Google::Cloud::Bigtable.new
280
- # table = bigtable.table("my-instance", "my-table")
280
+ # table = bigtable.table "my-instance", "my-table"
281
281
  #
282
282
  # range = table.new_row_range.from("key-1", inclusive: false).to("key-5")
283
283
  #
@@ -294,9 +294,9 @@ module Google
294
294
  # require "google/cloud/bigtable"
295
295
  #
296
296
  # bigtable = Google::Cloud::Bigtable.new
297
- # table = bigtable.table("my-instance", "my-table")
297
+ # table = bigtable.table "my-instance", "my-table"
298
298
  #
299
- # filter = table.filter.key("user-*")
299
+ # filter = table.filter.key "user-*"
300
300
  #
301
301
  def filter
302
302
  Google::Cloud::Bigtable::RowFilter
@@ -38,10 +38,10 @@ module Google
38
38
  #
39
39
  # bigtable = Google::Cloud::Bigtable.new
40
40
  #
41
- # instance = bigtable.instance("my-instance")
41
+ # instance = bigtable.instance "my-instance"
42
42
  #
43
43
  # routing_policy = Google::Cloud::Bigtable::AppProfile.single_cluster_routing(
44
- # "my-instance-cluster-1",
44
+ # "my-cluster",
45
45
  # allow_transactional_writes: true
46
46
  # )
47
47
  #
@@ -57,7 +57,7 @@ module Google
57
57
  #
58
58
  # bigtable = Google::Cloud::Bigtable.new
59
59
  #
60
- # instance = bigtable.instance("my-instance")
60
+ # instance = bigtable.instance "my-instance"
61
61
  #
62
62
  # routing_policy = Google::Cloud::Bigtable::AppProfile.multi_cluster_routing
63
63
  #
@@ -85,7 +85,7 @@ module Google
85
85
  #
86
86
  # bigtable = Google::Cloud::Bigtable.new
87
87
  #
88
- # instance = bigtable.instance("my-instance")
88
+ # instance = bigtable.instance "my-instance"
89
89
  #
90
90
  # routing_policy = Google::Cloud::Bigtable::AppProfile.multi_cluster_routing
91
91
  #
@@ -116,10 +116,10 @@ module Google
116
116
  #
117
117
  # bigtable = Google::Cloud::Bigtable.new
118
118
  #
119
- # instance = bigtable.instance("my-instance")
119
+ # instance = bigtable.instance "my-instance"
120
120
  #
121
121
  # routing_policy = Google::Cloud::Bigtable::AppProfile.single_cluster_routing(
122
- # "my-instance-cluster-1",
122
+ # "my-cluster",
123
123
  # allow_transactional_writes: true
124
124
  # )
125
125
  #