class Cassandra::Column

Represents a cassandra column @see Cassandra::Table#each_column @see Cassandra::Table#column

Attributes

name[R]

@return [String] column name

order[R]

@return [Symbol] column order (`:asc` or `:desc`)

type[R]

@return [Cassandra::Type] column type

Public Class Methods

new(name, type, order, is_static = false, is_frozen = false) click to toggle source

@private

   # File lib/cassandra/column.rb
32 def initialize(name, type, order, is_static = false, is_frozen = false)
33   @name     = name
34   @type     = type
35   @order    = order
36   @static   = is_static
37   @frozen   = is_frozen
38 end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source

@private

   # File lib/cassandra/column.rb
56 def eql?(other)
57   other.is_a?(Column) &&
58     @name == other.name &&
59     @type == other.type &&
60     @order == other.order &&
61     @static == other.static? &&
62     @frozen == other.frozen?
63 end
Also aliased as: ==
frozen?() click to toggle source

@return [Boolean] whether the column is frozen

   # File lib/cassandra/column.rb
46 def frozen?
47   @frozen
48 end
inspect() click to toggle source

@private

   # File lib/cassandra/column.rb
51 def inspect
52   "#<#{self.class.name}:0x#{object_id.to_s(16)} @name=#{@name} @type=#{@type}>"
53 end
static?() click to toggle source

@return [Boolean] whether the column is static

   # File lib/cassandra/column.rb
41 def static?
42   @static
43 end