class Cassandra::Protocol::PreparedResultResponse

Attributes

id[R]
metadata[R]
pk_idx[R]
result_metadata[R]

Public Class Methods

new(custom_payload, warnings, id, metadata, result_metadata, pk_idx, trace_id) click to toggle source
Calls superclass method
   # File lib/cassandra/protocol/responses/prepared_result_response.rb
27 def initialize(custom_payload,
28                warnings,
29                id,
30                metadata,
31                result_metadata,
32                pk_idx,
33                trace_id)
34   super(custom_payload, warnings, trace_id)
35   @id              = id
36   @metadata        = metadata
37   @result_metadata = result_metadata
38   @pk_idx          = pk_idx
39 end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
   # File lib/cassandra/protocol/responses/prepared_result_response.rb
41 def eql?(other)
42   id == other.id && metadata == other.metadata && trace_id == other.trace_id
43 end
Also aliased as: ==
hash() click to toggle source
   # File lib/cassandra/protocol/responses/prepared_result_response.rb
46 def hash
47   @h ||= begin
48     h = 17
49     h = 31 * h + @id.hash
50     h = 31 * h + @metadata.hash
51     h = 31 * h + @trace_id.hash
52     h
53   end
54 end
to_s() click to toggle source
   # File lib/cassandra/protocol/responses/prepared_result_response.rb
56 def to_s
57   hex_id = @id.each_byte.map { |x| x.to_s(16).rjust(2, '0') }.join('')
58   %(RESULT PREPARED #{hex_id} #{@metadata})
59 end