class Cql::Protocol::RawRowsResultResponse

Public Class Methods

new(protocol_version, raw_rows, paging_state, trace_id) click to toggle source
Calls superclass method
# File lib/cql/protocol/responses/raw_rows_result_response.rb, line 6
def initialize(protocol_version, raw_rows, paging_state, trace_id)
  super(nil, nil, paging_state, trace_id)
  @protocol_version = protocol_version
  @raw_rows = raw_rows
end

Public Instance Methods

materialize(metadata) click to toggle source
# File lib/cql/protocol/responses/raw_rows_result_response.rb, line 12
def materialize(metadata)
  @metadata = metadata
  @rows = RowsResultResponse.read_rows(@protocol_version, @raw_rows, @metadata)
end
rows() click to toggle source
# File lib/cql/protocol/responses/raw_rows_result_response.rb, line 17
def rows
  raise UnmaterializedRowsError, 'Not materialized!' unless @rows
  @rows
end
to_s() click to toggle source
# File lib/cql/protocol/responses/raw_rows_result_response.rb, line 22
def to_s
  %(RESULT ROWS (raw))
end