Class: Google::Apis::SpannerV1::ResultSet
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::ResultSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Overview
Results from Read or ExecuteSql.
Instance Attribute Summary collapse
-
#metadata ⇒ Google::Apis::SpannerV1::ResultSetMetadata
Metadata about a ResultSet or PartialResultSet.
-
#rows ⇒ Array<Array<Object>>
Each element in
rows
is a row whose format is defined by metadata.row_type. -
#stats ⇒ Google::Apis::SpannerV1::ResultSetStats
Additional statistics about a ResultSet or PartialResultSet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResultSet
constructor
A new instance of ResultSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResultSet
Returns a new instance of ResultSet
2528 2529 2530 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2528 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata ⇒ Google::Apis::SpannerV1::ResultSetMetadata
Metadata about a ResultSet or PartialResultSet.
Corresponds to the JSON property metadata
2521 2522 2523 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2521 def @metadata end |
#rows ⇒ Array<Array<Object>>
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
Corresponds to the JSON property rows
2516 2517 2518 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2516 def rows @rows end |
#stats ⇒ Google::Apis::SpannerV1::ResultSetStats
Additional statistics about a ResultSet or PartialResultSet.
Corresponds to the JSON property stats
2526 2527 2528 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2526 def stats @stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2533 2534 2535 2536 2537 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2533 def update!(**args) @rows = args[:rows] if args.key?(:rows) @metadata = args[:metadata] if args.key?(:metadata) @stats = args[:stats] if args.key?(:stats) end |