Class: Cequel::Type::Int

Inherits:
Base
  • Object
show all
Defined in:
lib/cequel/type.rb

Overview

`int` columns store 32-bit integer values

See Also:

Since:

  • 1.0.0

Direct Known Subclasses

Bigint, Varint

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


327
328
329
# File 'lib/cequel/type.rb', line 327

def cast(value)
  Integer(value)
end

#internal_namesObject

Since:

  • 1.0.0


323
324
325
# File 'lib/cequel/type.rb', line 323

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