Class: Presto::Client::QueryResults
- Inherits:
-
Object
- Object
- Presto::Client::QueryResults
- Defined in:
- lib/presto/client/models.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#info_uri ⇒ Object
readonly
Returns the value of attribute info_uri.
-
#next_uri ⇒ Object
readonly
Returns the value of attribute next_uri.
-
#partial_cache_uri ⇒ Object
readonly
Returns the value of attribute partial_cache_uri.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ QueryResults
constructor
A new instance of QueryResults.
Constructor Details
#initialize(options = {}) ⇒ QueryResults
Returns a new instance of QueryResults.
169 170 171 172 173 174 175 176 177 178 |
# File 'lib/presto/client/models.rb', line 169 def initialize(={}) @id = [:id] @info_uri = [:info_uri] @partial_cache_uri = [:partial_cache_uri] @next_uri = [:next_uri] @columns = [:columns] @data = [:data] @stats = [:stats] @error = [:error] end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
164 165 166 |
# File 'lib/presto/client/models.rb', line 164 def columns @columns end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
165 166 167 |
# File 'lib/presto/client/models.rb', line 165 def data @data end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
167 168 169 |
# File 'lib/presto/client/models.rb', line 167 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
160 161 162 |
# File 'lib/presto/client/models.rb', line 160 def id @id end |
#info_uri ⇒ Object (readonly)
Returns the value of attribute info_uri.
161 162 163 |
# File 'lib/presto/client/models.rb', line 161 def info_uri @info_uri end |
#next_uri ⇒ Object (readonly)
Returns the value of attribute next_uri.
163 164 165 |
# File 'lib/presto/client/models.rb', line 163 def next_uri @next_uri end |
#partial_cache_uri ⇒ Object (readonly)
Returns the value of attribute partial_cache_uri.
162 163 164 |
# File 'lib/presto/client/models.rb', line 162 def partial_cache_uri @partial_cache_uri end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
166 167 168 |
# File 'lib/presto/client/models.rb', line 166 def stats @stats end |
Class Method Details
.decode_hash(hash) ⇒ Object
180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/presto/client/models.rb', line 180 def self.decode_hash(hash) new( id: hash["id"], info_uri: hash["infoUri"], partial_cache_uri: hash["partialCancelUri"], next_uri: hash["nextUri"], columns: hash["columns"] ? hash["columns"].map {|h| Column.decode_hash(h) } : nil, data: hash["data"], stats: StatementStats.decode_hash(hash["stats"]), error: hash["error"], # TODO ) end |