google-cloud-bigtable 2.6.1 → 2.6.2
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/lib/google/cloud/bigtable/app_profile.rb +20 -21
- data/lib/google/cloud/bigtable/app_profile/job.rb +4 -4
- data/lib/google/cloud/bigtable/app_profile/list.rb +5 -7
- data/lib/google/cloud/bigtable/backup.rb +36 -36
- data/lib/google/cloud/bigtable/backup/job.rb +8 -8
- data/lib/google/cloud/bigtable/backup/list.rb +9 -11
- data/lib/google/cloud/bigtable/cluster.rb +15 -15
- data/lib/google/cloud/bigtable/cluster/job.rb +2 -2
- data/lib/google/cloud/bigtable/column_family.rb +2 -2
- data/lib/google/cloud/bigtable/column_family_map.rb +14 -14
- data/lib/google/cloud/bigtable/column_range.rb +7 -7
- data/lib/google/cloud/bigtable/encryption_info.rb +4 -4
- data/lib/google/cloud/bigtable/gc_rule.rb +20 -20
- data/lib/google/cloud/bigtable/instance.rb +40 -40
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +6 -6
- data/lib/google/cloud/bigtable/instance/job.rb +4 -4
- data/lib/google/cloud/bigtable/mutation_entry.rb +21 -21
- data/lib/google/cloud/bigtable/mutation_operations.rb +34 -34
- data/lib/google/cloud/bigtable/policy.rb +4 -4
- data/lib/google/cloud/bigtable/project.rb +15 -15
- data/lib/google/cloud/bigtable/read_operations.rb +31 -31
- data/lib/google/cloud/bigtable/routing_policy.rb +6 -6
- data/lib/google/cloud/bigtable/row_filter.rb +28 -28
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +30 -29
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +27 -26
- data/lib/google/cloud/bigtable/row_range.rb +18 -18
- data/lib/google/cloud/bigtable/sample_row_key.rb +1 -1
- data/lib/google/cloud/bigtable/status.rb +2 -2
- data/lib/google/cloud/bigtable/table.rb +34 -34
- data/lib/google/cloud/bigtable/table/cluster_state.rb +1 -1
- data/lib/google/cloud/bigtable/table/list.rb +2 -2
- data/lib/google/cloud/bigtable/table/restore_job.rb +12 -12
- data/lib/google/cloud/bigtable/value_range.rb +18 -18
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +2 -2
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
#
|
32
32
|
# bigtable = Google::Cloud::Bigtable.new
|
33
33
|
#
|
34
|
-
# table = bigtable.table
|
34
|
+
# table = bigtable.table "my-instance", "my-table", view: :FULL, perform_lookup: true
|
35
35
|
#
|
36
36
|
# table.cluster_states.each do |cs|
|
37
37
|
# puts cs.cluster_name
|
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
#
|
49
49
|
# bigtable = Google::Cloud::Bigtable.new
|
50
50
|
#
|
51
|
-
# tables = bigtable.tables
|
51
|
+
# tables = bigtable.tables "my-instance"
|
52
52
|
# if tables.next?
|
53
53
|
# next_tables = tables.next
|
54
54
|
# end
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
#
|
68
68
|
# bigtable = Google::Cloud::Bigtable.new
|
69
69
|
#
|
70
|
-
# tables = bigtable.tables
|
70
|
+
# tables = bigtable.tables "my-instance"
|
71
71
|
# if tables.next?
|
72
72
|
# next_tables = tables.next
|
73
73
|
# end
|
@@ -32,12 +32,12 @@ module Google
|
|
32
32
|
# require "google/cloud/bigtable"
|
33
33
|
#
|
34
34
|
# bigtable = Google::Cloud::Bigtable.new
|
35
|
-
# instance = bigtable.instance
|
36
|
-
# cluster = instance.cluster
|
35
|
+
# instance = bigtable.instance "my-instance"
|
36
|
+
# cluster = instance.cluster "my-cluster"
|
37
37
|
#
|
38
|
-
# backup = cluster.backup
|
38
|
+
# backup = cluster.backup "my-backup"
|
39
39
|
#
|
40
|
-
# job = backup.restore
|
40
|
+
# job = backup.restore "my-new-table"
|
41
41
|
#
|
42
42
|
# job.wait_until_done!
|
43
43
|
# job.done? #=> true
|
@@ -60,12 +60,12 @@ module Google
|
|
60
60
|
# require "google/cloud/bigtable"
|
61
61
|
#
|
62
62
|
# bigtable = Google::Cloud::Bigtable.new
|
63
|
-
# instance = bigtable.instance
|
64
|
-
# cluster = instance.cluster
|
63
|
+
# instance = bigtable.instance "my-instance"
|
64
|
+
# cluster = instance.cluster "my-cluster"
|
65
65
|
#
|
66
|
-
# backup = cluster.backup
|
66
|
+
# backup = cluster.backup "my-backup"
|
67
67
|
#
|
68
|
-
# job = backup.restore
|
68
|
+
# job = backup.restore "my-new-table"
|
69
69
|
#
|
70
70
|
# job.wait_until_done!
|
71
71
|
# job.done? #=> true
|
@@ -90,12 +90,12 @@ module Google
|
|
90
90
|
# require "google/cloud/bigtable"
|
91
91
|
#
|
92
92
|
# bigtable = Google::Cloud::Bigtable.new
|
93
|
-
# instance = bigtable.instance
|
94
|
-
# cluster = instance.cluster
|
93
|
+
# instance = bigtable.instance "my-instance"
|
94
|
+
# cluster = instance.cluster "my-cluster"
|
95
95
|
#
|
96
|
-
# backup = cluster.backup
|
96
|
+
# backup = cluster.backup "my-backup"
|
97
97
|
#
|
98
|
-
# job = backup.restore
|
98
|
+
# job = backup.restore "my-new-table"
|
99
99
|
#
|
100
100
|
# job.wait_until_done!
|
101
101
|
# job.done? #=> true
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
# require "google/cloud/bigtable"
|
35
35
|
#
|
36
36
|
# bigtable = Google::Cloud::Bigtable.new
|
37
|
-
# table = bigtable.table
|
37
|
+
# table = bigtable.table "my-instance", "my-table"
|
38
38
|
#
|
39
39
|
# # Range that includes all row keys including "value-001" to "value-005" excluding.
|
40
40
|
# table.new_value_range.from("value-001").to("value-005")
|
@@ -43,19 +43,19 @@ module Google
|
|
43
43
|
# table.new_value_range.from("value-001").to("value-010", inclusive: true)
|
44
44
|
#
|
45
45
|
# # Range that includes all row keys including "value-001" up until end of the row keys.
|
46
|
-
# table.new_value_range.from
|
46
|
+
# table.new_value_range.from "value-001"
|
47
47
|
#
|
48
48
|
# # Range that includes all row keys exclusive "value-001" up until end of the row keys.
|
49
|
-
# table.new_value_range.from
|
49
|
+
# table.new_value_range.from "value-001", inclusive: false
|
50
50
|
#
|
51
51
|
# # Range with unbounded from and the exclusive end "value-100".
|
52
|
-
# table.new_value_range.to
|
52
|
+
# table.new_value_range.to "value-100"
|
53
53
|
#
|
54
54
|
# # Range that includes all row keys including from and end row keys "value-001", "value-100".
|
55
|
-
# table.new_value_range.between
|
55
|
+
# table.new_value_range.between "value-001", "value-100"
|
56
56
|
#
|
57
57
|
# # Range that includes all row keys including "value-001" up until "value-100".
|
58
|
-
# table.new_value_range.of
|
58
|
+
# table.new_value_range.of "value-001", "value-100"
|
59
59
|
#
|
60
60
|
class ValueRange
|
61
61
|
# @private
|
@@ -78,17 +78,17 @@ module Google
|
|
78
78
|
# require "google/cloud/bigtable"
|
79
79
|
#
|
80
80
|
# bigtable = Google::Cloud::Bigtable.new
|
81
|
-
# table = bigtable.table
|
81
|
+
# table = bigtable.table "my-instance", "my-table"
|
82
82
|
#
|
83
|
-
# range = table.new_value_range.from
|
83
|
+
# range = table.new_value_range.from "value-001"
|
84
84
|
#
|
85
85
|
# @example Exclusive lower bound.
|
86
86
|
# require "google/cloud/bigtable"
|
87
87
|
#
|
88
88
|
# bigtable = Google::Cloud::Bigtable.new
|
89
|
-
# table = bigtable.table
|
89
|
+
# table = bigtable.table "my-instance", "my-table"
|
90
90
|
#
|
91
|
-
# range = table.new_value_range.from
|
91
|
+
# range = table.new_value_range.from "value-001", inclusive: false
|
92
92
|
#
|
93
93
|
def from value, inclusive: true
|
94
94
|
# If value is integer, covert it to a 64-bit signed big-endian integer.
|
@@ -115,17 +115,17 @@ module Google
|
|
115
115
|
# require "google/cloud/bigtable"
|
116
116
|
#
|
117
117
|
# bigtable = Google::Cloud::Bigtable.new
|
118
|
-
# table = bigtable.table
|
118
|
+
# table = bigtable.table "my-instance", "my-table"
|
119
119
|
#
|
120
|
-
# range = table.new_value_range.to
|
120
|
+
# range = table.new_value_range.to "value-010", inclusive: true
|
121
121
|
#
|
122
122
|
# @example Exclusive upper bound.
|
123
123
|
# require "google/cloud/bigtable"
|
124
124
|
#
|
125
125
|
# bigtable = Google::Cloud::Bigtable.new
|
126
|
-
# table = bigtable.table
|
126
|
+
# table = bigtable.table "my-instance", "my-table"
|
127
127
|
#
|
128
|
-
# range = table.new_value_range.to
|
128
|
+
# range = table.new_value_range.to "value-010"
|
129
129
|
#
|
130
130
|
def to value, inclusive: false
|
131
131
|
# If value is integer, covert it to a 64-bit signed big-endian integer.
|
@@ -154,9 +154,9 @@ module Google
|
|
154
154
|
# require "google/cloud/bigtable"
|
155
155
|
#
|
156
156
|
# bigtable = Google::Cloud::Bigtable.new
|
157
|
-
# table = bigtable.table
|
157
|
+
# table = bigtable.table "my-instance", "my-table"
|
158
158
|
#
|
159
|
-
# range = table.new_value_range.between
|
159
|
+
# range = table.new_value_range.between "value-001", "value-010"
|
160
160
|
#
|
161
161
|
def between from_value, to_value
|
162
162
|
from(from_value).to(to_value, inclusive: true)
|
@@ -178,9 +178,9 @@ module Google
|
|
178
178
|
# require "google/cloud/bigtable"
|
179
179
|
#
|
180
180
|
# bigtable = Google::Cloud::Bigtable.new
|
181
|
-
# table = bigtable.table
|
181
|
+
# table = bigtable.table "my-instance", "my-table"
|
182
182
|
#
|
183
|
-
# range = table.new_value_range.of
|
183
|
+
# range = table.new_value_range.of "value-001", "value-010"
|
184
184
|
#
|
185
185
|
def of from_value, to_value
|
186
186
|
from(from_value).to(to_value)
|
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.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-bigtable-admin-v2
|