Class: Cequel::Type::Blob

Inherits:
String show all
Defined in:
lib/cequel/type.rb

Overview

‘blob` columns store arbitrary bytes of data, represented as 8-bit ASCII strings of hex digits

See Also:

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Base

#compatible_types, #cql_aliases, #cql_name, #internal_name, #to_s

Instance Method Details

#cast(value) ⇒ Object

Since:

  • 1.0.0



226
227
228
229
# File 'lib/cequel/type.rb', line 226

def cast(value)
  value = value.to_s(16) if value.is_a?(Integer)
  super
end

#internal_namesObject

Since:

  • 1.0.0



222
223
224
# File 'lib/cequel/type.rb', line 222

def internal_names
  ['org.apache.cassandra.db.marshal.BytesType']
end