class Cequel::Type::Counter

Counter columns are a special type of column in Cassandra that can be incremented and decremented atomically. Counter columns cannot comingle with regular data columns in the same table. Unlike other columns, counter columns cannot be updated without Cassandra internally reading the existing state of the column

@see cassandra.apache.org/doc/latest/cql/types.html

CQL3 data type documentation

Public Instance Methods

cast(value) click to toggle source
# File lib/cequel/type.rb, line 270
def cast(value)
  Integer(value)
end
compatible_types() click to toggle source
# File lib/cequel/type.rb, line 266
def compatible_types
  []
end
internal_names() click to toggle source
# File lib/cequel/type.rb, line 262
def internal_names
  ['org.apache.cassandra.db.marshal.CounterColumnType']
end