google-cloud-bigtable 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +1 -1
- data/OVERVIEW.md +4 -4
- data/lib/google/cloud/bigtable/instance.rb +2 -2
- data/lib/google/cloud/bigtable/mutation_entry.rb +6 -6
- data/lib/google/cloud/bigtable/mutation_operations.rb +4 -4
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c055b86b9d279e27fdb78ec71ddb8babd48661349c0404db696496c84fb3d8e1
|
4
|
+
data.tar.gz: 4c3557a421b16d56680b9c9a39f1d5073a6886efe5198262df0ca02494a000be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da4f265ebb057cc6e291104edf56cfdf121efc9a75def53dbc9831aba3708049eb68a53c378c147c9f49277afa8cf46822ce01c4e11aa8fcefd907522408862c
|
7
|
+
data.tar.gz: 79be648c3e85fe49e9a285fcdec140e16e015e510b8d5327a802c0e1d36b825d4c4ab2cb52f63c9d5e8b96ef3177c0f91648ea56e5aac5c045ffba90e0a1c101
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -194,8 +194,8 @@ table = bigtable.table("my-instance", "my-table")
|
|
194
194
|
|
195
195
|
entry = table.new_mutation_entry("user-1")
|
196
196
|
entry.set_cell(
|
197
|
-
"
|
198
|
-
"
|
197
|
+
"cf1",
|
198
|
+
"field1",
|
199
199
|
"XYZ",
|
200
200
|
timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
|
201
201
|
).delete_cells("cf2", "field02")
|
@@ -245,8 +245,8 @@ table = bigtable.table("my-instance", "my-table")
|
|
245
245
|
predicate_filter = Google::Cloud::Bigtable::RowFilter.key("user-10")
|
246
246
|
on_match_mutations = Google::Cloud::Bigtable::MutationEntry.new
|
247
247
|
on_match_mutations.set_cell(
|
248
|
-
"
|
249
|
-
"
|
248
|
+
"cf1",
|
249
|
+
"field1",
|
250
250
|
"XYZ",
|
251
251
|
timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
|
252
252
|
).delete_cells("cf2", "field02")
|
@@ -509,8 +509,8 @@ module Google
|
|
509
509
|
#
|
510
510
|
# entry = table.new_mutation_entry("user-1")
|
511
511
|
# entry.set_cell(
|
512
|
-
# "
|
513
|
-
# "
|
512
|
+
# "cf1",
|
513
|
+
# "field1",
|
514
514
|
# "XYZ",
|
515
515
|
# timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
|
516
516
|
# ).delete_cells("cf2", "field02")
|
@@ -104,8 +104,8 @@ module Google
|
|
104
104
|
# @example With timestamp.
|
105
105
|
# entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
|
106
106
|
# entry.set_cell(
|
107
|
-
# "
|
108
|
-
# "
|
107
|
+
# "cf1",
|
108
|
+
# "field1",
|
109
109
|
# "XYZ",
|
110
110
|
# timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
|
111
111
|
# )
|
@@ -156,14 +156,14 @@ module Google
|
|
156
156
|
#
|
157
157
|
# @example Without timestamp range.
|
158
158
|
# entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
|
159
|
-
# entry.delete_cells("
|
159
|
+
# entry.delete_cells("cf1", "field1")
|
160
160
|
#
|
161
161
|
# @example With timestamp range.
|
162
162
|
# entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
|
163
163
|
# timestamp_micros = (Time.now.to_f * 1000000).round(-3)
|
164
164
|
# entry.delete_cells(
|
165
165
|
# "cf1",
|
166
|
-
# "
|
166
|
+
# "field1",
|
167
167
|
# timestamp_from: timestamp_micros - 5000000,
|
168
168
|
# timestamp_to: timestamp_micros
|
169
169
|
# )
|
@@ -172,7 +172,7 @@ module Google
|
|
172
172
|
# timestamp_micros = (Time.now.to_f * 1000000).round(-3)
|
173
173
|
# entry.delete_cells(
|
174
174
|
# "cf1",
|
175
|
-
# "
|
175
|
+
# "field1",
|
176
176
|
# timestamp_from: timestamp_micros - 5000000
|
177
177
|
# )
|
178
178
|
#
|
@@ -201,7 +201,7 @@ module Google
|
|
201
201
|
#
|
202
202
|
# @example
|
203
203
|
# entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
|
204
|
-
# entry.delete_from_family("
|
204
|
+
# entry.delete_from_family("cf1")
|
205
205
|
#
|
206
206
|
def delete_from_family family
|
207
207
|
@mutations << Google::Cloud::Bigtable::V2::Mutation.new(delete_from_family: { family_name: family })
|
@@ -65,8 +65,8 @@ module Google
|
|
65
65
|
#
|
66
66
|
# entry = table.new_mutation_entry("user-1")
|
67
67
|
# entry.set_cell(
|
68
|
-
# "
|
69
|
-
# "
|
68
|
+
# "cf1",
|
69
|
+
# "field1",
|
70
70
|
# "XYZ",
|
71
71
|
# timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
|
72
72
|
# ).delete_cells("cf2", "field02")
|
@@ -219,8 +219,8 @@ module Google
|
|
219
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
|
-
# "
|
223
|
-
# "
|
222
|
+
# "cf1",
|
223
|
+
# "field1",
|
224
224
|
# "XYZ",
|
225
225
|
# timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
|
226
226
|
# ).delete_cells("cf2", "field02")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigtable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-bigtable-admin-v2
|