class Cequel::Schema::Set

A Set column

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

CQL documentation for set columns

Public Instance Methods

cast(value) click to toggle source

@param (see Column#cast) @return [::Set] set with elements cast to correct type for column

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

(see Column#to_cql)

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