Class: DatabricksSql::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/databricks_sql/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnsObject (readonly)

Returns the value of attribute columns.



5
6
7
# File 'lib/databricks_sql/result.rb', line 5

def columns
  @columns
end

#dispositionObject (readonly)

Returns the value of attribute disposition.



5
6
7
# File 'lib/databricks_sql/result.rb', line 5

def disposition
  @disposition
end

#formatObject (readonly)

Returns the value of attribute format.



5
6
7
# File 'lib/databricks_sql/result.rb', line 5

def format
  @format
end

#manifestObject (readonly)

Returns the value of attribute manifest.



5
6
7
# File 'lib/databricks_sql/result.rb', line 5

def manifest
  @manifest
end

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_responseObject (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

#rowsObject (readonly)

Returns the value of attribute rows.



5
6
7
# File 'lib/databricks_sql/result.rb', line 5

def rows
  @rows
end

#statement_idObject (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

#statusObject (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

Returns:

  • (Boolean)


21
22
23
# File 'lib/databricks_sql/result.rb', line 21

def success?
  status == "SUCCEEDED"
end