Class: Google::Apis::SpannerV1::ResultSet
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::ResultSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/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
rowsis 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.
Constructor Details
#initialize(**args) ⇒ ResultSet
Returns a new instance of ResultSet.
3731 3732 3733 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3731 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
3717 3718 3719 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3717 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
3724 3725 3726 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3724 def rows @rows end |
#stats ⇒ Google::Apis::SpannerV1::ResultSetStats
Additional statistics about a ResultSet or PartialResultSet.
Corresponds to the JSON property stats
3729 3730 3731 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3729 def stats @stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3736 3737 3738 3739 3740 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3736 def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) @rows = args[:rows] if args.key?(:rows) @stats = args[:stats] if args.key?(:stats) end |