class Cequel::Schema::List

A List column

@see cassandra.apache.org/doc/cql3/CQL.html#list

CQL documentation for the list type

Public Instance Methods

cast(value) click to toggle source

@return [Array] array with elements cast to correct type for column

# File lib/cequel/schema/column.rb, line 239
def cast(value)
  value.map { |element| @type.cast(element) }
end
to_cql() click to toggle source

(see Column#to_cql)

# File lib/cequel/schema/column.rb, line 232
def to_cql
  "#{@name} LIST <#{@type}>"
end