Class: Cassandra::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra/column.rb

Overview

Represents a cassandra column

See Also:

  • Table#each_column
  • Table#column

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameString (readonly)

Returns column name.

Returns:

  • (String)

    column name



25
26
27
# File 'lib/cassandra/column.rb', line 25

def name
  @name
end

#orderSymbol (readonly)

Returns column order (:asc or :desc).

Returns:

  • (Symbol)

    column order (:asc or :desc)



29
30
31
# File 'lib/cassandra/column.rb', line 29

def order
  @order
end

#typeCassandra::Type (readonly)

Returns column type.

Returns:



27
28
29
# File 'lib/cassandra/column.rb', line 27

def type
  @type
end

Instance Method Details

#frozen?Boolean

Returns whether the column is frozen.

Returns:

  • (Boolean)

    whether the column is frozen



46
47
48
# File 'lib/cassandra/column.rb', line 46

def frozen?
  @frozen
end

#static?Boolean

Returns whether the column is static.

Returns:

  • (Boolean)

    whether the column is static



41
42
43
# File 'lib/cassandra/column.rb', line 41

def static?
  @static
end