class Cequel::Schema::DataColumn

A scalar data column

Attributes

index_name[R]

@return [Symbol] name of the secondary index applied to this column, if

any

Public Class Methods

new(name, type, index_name = nil) click to toggle source

@param (see Column#initialize) @param index_name [Symbol] name this column's secondary index

Calls superclass method Cequel::Schema::Column::new
# File lib/cequel/schema/column.rb, line 194
def initialize(name, type, index_name = nil)
  super(name, type)
  @index_name = index_name
end

Public Instance Methods

indexed?() click to toggle source

@return [Boolean] true if this column has a secondary index

# File lib/cequel/schema/column.rb, line 202
def indexed?
  !!@index_name
end