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
Creates an instance of an append-value rule.
-
.increment(family, qualifier, amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Creates an instance of an increment-amount rule.
Instance Method Summary collapse
-
#append(value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Sets the append value.
-
#increment(amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Sets the increment amount.
Class Method Details
.append(family, qualifier, value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Creates an instance of an append-value rule.
69 70 71 72 73 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 69 def self.append family, qualifier, value rule = new family, qualifier rule.append value rule end |
.increment(family, qualifier, amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Creates an instance of an increment-amount rule.
94 95 96 97 98 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 94 def self.increment family, qualifier, amount rule = new family, qualifier rule.increment amount rule end |
Instance Method Details
#append(value) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Sets the append value.
106 107 108 109 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 106 def append value @grpc.append_value = value self end |
#increment(amount) ⇒ Google::Cloud::Bigtable::ReadModifyWriteRule
Sets the increment amount.
117 118 119 120 |
# File 'lib/google/cloud/bigtable/read_modify_write_rule.rb', line 117 def increment amount @grpc.increment_amount = amount self end |