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



373
374
375
# File 'lib/google/cloud/bigtable/mutation_operations.rb', line 373

def index
  @index
end

#statusObject (readonly)

Returns the value of attribute status.



374
375
376
# File 'lib/google/cloud/bigtable/mutation_operations.rb', line 374

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:



373
374
375
# File 'lib/google/cloud/bigtable/mutation_operations.rb', line 373

def The
  @The
end