Class: Google::Cloud::Spanner::BatchWriteResults::BatchResult
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::BatchWriteResults::BatchResult
- Defined in:
- lib/google/cloud/spanner/batch_write_results.rb
Overview
Result of a set of mutation groups applied together.
Instance Method Summary collapse
-
#commit_timestamp ⇒ ::Time
The timestamp of the commit.
-
#error? ⇒ ::Boolean
Whether these mutation groups were unsuccessful.
-
#indexes ⇒ ::Array<::Integer>
The indexes of the mutation groups applied together.
-
#ok? ⇒ ::Boolean
Whether these mutation groups were successful.
-
#status ⇒ ::Google::Rpc::Status
The result of this set of mutation groups.
Instance Method Details
#commit_timestamp ⇒ ::Time
The timestamp of the commit.
80 81 82 |
# File 'lib/google/cloud/spanner/batch_write_results.rb', line 80 def Convert. @grpc. end |
#error? ⇒ ::Boolean
Whether these mutation groups were unsuccessful.
71 72 73 |
# File 'lib/google/cloud/spanner/batch_write_results.rb', line 71 def error? !ok? end |
#indexes ⇒ ::Array<::Integer>
The indexes of the mutation groups applied together.
44 45 46 |
# File 'lib/google/cloud/spanner/batch_write_results.rb', line 44 def indexes @grpc.indexes.to_a end |
#ok? ⇒ ::Boolean
Whether these mutation groups were successful.
62 63 64 |
# File 'lib/google/cloud/spanner/batch_write_results.rb', line 62 def ok? status.code.zero? end |
#status ⇒ ::Google::Rpc::Status
The result of this set of mutation groups.
53 54 55 |
# File 'lib/google/cloud/spanner/batch_write_results.rb', line 53 def status @grpc.status end |