Class: Cequel::Schema::CollectionColumn Abstract

Inherits:
Column
  • Object
show all
Defined in:
lib/cequel/schema/column.rb

Overview

This class is abstract.

A collection column (list, set, or map)

Since:

  • 1.0.0

Direct Known Subclasses

List, Map, Set

Instance Attribute Summary

Attributes inherited from Column

#name, #type

Instance Method Summary collapse

Methods inherited from Column

#==, #cast, #clustering_column?, #data_column?, #initialize, #inspect, #key?, #partition_key?, #to_cql, #to_s, #type?

Constructor Details

This class inherits a constructor from Cequel::Schema::Column

Instance Method Details

#collection_column?Boolean

Returns true if this is a collection column.

Returns:

  • (Boolean)

    true if this is a collection column

Since:

  • 1.0.0



215
216
217
# File 'lib/cequel/schema/column.rb', line 215

def collection_column?
  true
end

#indexed?Boolean

Returns true if this column has a secondary index.

Returns:

  • (Boolean)

    true if this column has a secondary index

Since:

  • 1.0.0



220
221
222
# File 'lib/cequel/schema/column.rb', line 220

def indexed?
  false
end