class Cql::Protocol::ResultResponse

Constants

RESULT_TYPES

Attributes

trace_id[R]

Public Class Methods

decode(protocol_version, buffer, length, trace_id=nil) click to toggle source
# File lib/cql/protocol/responses/result_response.rb, line 12
def self.decode(protocol_version, buffer, length, trace_id=nil)
  kind = buffer.read_int
  impl = RESULT_TYPES[kind]
  raise UnsupportedResultKindError, %(Unsupported result kind: #{kind}) unless impl
  impl.decode(protocol_version, buffer, length - 4, trace_id)
end
new(trace_id) click to toggle source
# File lib/cql/protocol/responses/result_response.rb, line 8
def initialize(trace_id)
  @trace_id = trace_id
end

Public Instance Methods

void?() click to toggle source
# File lib/cql/protocol/responses/result_response.rb, line 19
def void?
  false
end