Class: Google::Cloud::Bigtable::MutationOperations::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/bigtable/mutation_operations.rb

Overview

MutationEntry::Response

Represents a response message from BigtableService.MutateRows.

Examples:

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

Instance Attribute Summary collapse

Instance Attribute Details

#indexInteger

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



337
338
339
# File 'lib/google/cloud/bigtable/mutation_operations.rb', line 337

def index
  @index
end

#statusObject (readonly)

Returns the value of attribute status.



338
339
340
# File 'lib/google/cloud/bigtable/mutation_operations.rb', line 338

def status
  @status
end

#TheGoogle::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:



337
338
339
# File 'lib/google/cloud/bigtable/mutation_operations.rb', line 337

def The
  @The
end