Cloud Bigtable API - Class Google::Cloud::Bigtable::MutationOperations::Response (v2.7.1)

Reference documentation and code samples for the Cloud Bigtable API class Google::Cloud::Bigtable::MutationOperations::Response.

MutationEntry::Response

Represents a response message from BigtableService.MutateRows.

Inherits

  • Object

Example

require "google/cloud/bigtable"

bigtable = Google::Cloud::Bigtable.new

table = bigtable.table "my-instance", "my-table"

entries = []
entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ")
entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC")
responses = table.mutate_rows entries

responses.each do |response|
  puts response.status.description
end

Methods

#The

def The() -> Google::Cloud::Bigtable::Status

result of the request Entry identified by index. Depending on how requests are batched during execution, it is possible for one Entry to fail due to an error with another Entry. In the event that this occurs, the same error will be reported for both entries.

Returns

#The=

def The=(value) -> Google::Cloud::Bigtable::Status

result of the request Entry identified by index. Depending on how requests are batched during execution, it is possible for one Entry to fail due to an error with another Entry. In the event that this occurs, the same error will be reported for both entries.

Parameter
Returns

#index

def index() -> Integer

The index into the original request's entries list of the Entry for which a result is being reported.

Returns
  • (Integer) — the current value of index

#index=

def index=(value) -> Integer

The index into the original request's entries list of the Entry for which a result is being reported.

Parameter
  • value (Integer) — the newly set value
Returns
  • (Integer) — the newly set value

#status

def status()

Returns the value of attribute status.