Class: Cql::Protocol::ResultResponse
- Defined in:
- lib/cql/protocol/responses/result_response.rb
Direct Known Subclasses
EventResponse, PreparedResultResponse, RowsResultResponse, SchemaChangeResultResponse, SetKeyspaceResultResponse, VoidResultResponse
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Decoding
#read_byte!, #read_bytes!, #read_consistency!, #read_decimal!, #read_double!, #read_float!, #read_inet!, #read_int!, #read_long!, #read_long_string!, #read_option!, #read_short!, #read_short_bytes!, #read_string!, #read_string_list!, #read_string_map!, #read_string_multimap!, #read_uuid!, #read_varint!
Class Method Details
.decode!(buffer) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cql/protocol/responses/result_response.rb', line 6 def self.decode!(buffer) kind = read_int!(buffer) case kind when 0x01 VoidResultResponse.decode!(buffer) when 0x02 RowsResultResponse.decode!(buffer) when 0x03 SetKeyspaceResultResponse.decode!(buffer) when 0x04 PreparedResultResponse.decode!(buffer) when 0x05 SchemaChangeResultResponse.decode!(buffer) else raise UnsupportedResultKindError, %(Unsupported result kind: #{kind}) end end |
Instance Method Details
#void? ⇒ Boolean
24 25 26 |
# File 'lib/cql/protocol/responses/result_response.rb', line 24 def void? false end |