Class: Google::Cloud::Bigtable::ReadModifyWriteRule
- Inherits:
-
Object
- Object
- Google::Cloud::Bigtable::ReadModifyWriteRule
- Defined in:
- lib/google/cloud/bigtable/read_modify_write_rule.rb
Overview
ReadModifyWriteRule
Specifies an atomic read/modify/write operation on the latest value of the specified column.
Class Method Summary collapse
-
.append(family, qualifier, value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Create append value rule instance.
-
.increment(family, qualifier, amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Create increment amount rule instance.
Instance Method Summary collapse
-
#append(value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Set append value.
-
#increment(amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Set increment amount.
Class Method Details
.append(family, qualifier, value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Create append value rule instance.
67 68 69 70 71 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 67 def self.append family, qualifier, value rule = new(family, qualifier) rule.append(value) rule end |
.increment(family, qualifier, amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Create increment amount rule instance.
91 92 93 94 95 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 91 def self.increment family, qualifier, amount rule = new(family, qualifier) rule.increment(amount) rule end |
Instance Method Details
#append(value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Set append value.
102 103 104 105 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 102 def append value @grpc.append_value = value self end |
#increment(amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Set increment amount.
112 113 114 115 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 112 def increment amount @grpc.increment_amount = amount self end |