Class: DatabricksSql::Result
- Inherits:
-
Object
- Object
- DatabricksSql::Result
- Defined in:
- lib/databricks_sql/result.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#disposition ⇒ Object
readonly
Returns the value of attribute disposition.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#manifest ⇒ Object
readonly
Returns the value of attribute manifest.
-
#next_chunk_internal_link ⇒ Object
readonly
Returns the value of attribute next_chunk_internal_link.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
-
#statement_id ⇒ Object
readonly
Returns the value of attribute statement_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(statement_id:, status:, disposition:, format:, columns:, rows:, manifest:, raw_response:, next_chunk_internal_link: nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(statement_id:, status:, disposition:, format:, columns:, rows:, manifest:, raw_response:, next_chunk_internal_link: nil) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/databricks_sql/result.rb', line 8 def initialize(statement_id:, status:, disposition:, format:, columns:, rows:, manifest:, raw_response:, next_chunk_internal_link: nil) @statement_id = statement_id @status = status @disposition = disposition @format = format @columns = columns @rows = rows @manifest = manifest @raw_response = raw_response @next_chunk_internal_link = next_chunk_internal_link end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def columns @columns end |
#disposition ⇒ Object (readonly)
Returns the value of attribute disposition.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def disposition @disposition end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def format @format end |
#manifest ⇒ Object (readonly)
Returns the value of attribute manifest.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def manifest @manifest end |
#next_chunk_internal_link ⇒ Object (readonly)
Returns the value of attribute next_chunk_internal_link.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def next_chunk_internal_link @next_chunk_internal_link end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def raw_response @raw_response end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def rows @rows end |
#statement_id ⇒ Object (readonly)
Returns the value of attribute statement_id.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def statement_id @statement_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/databricks_sql/result.rb', line 5 def status @status end |
Instance Method Details
#success? ⇒ Boolean
21 22 23 |
# File 'lib/databricks_sql/result.rb', line 21 def success? status == "SUCCEEDED" end |