Class: Cequel::Schema::PartitionKey

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

Overview

A partition key column

Since:

  • 1.0.0

Instance Attribute Summary

Attributes inherited from Column

#name, #type

Instance Method Summary collapse

Methods inherited from Column

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

Constructor Details

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

Instance Method Details

#partition_key?Boolean

Returns true if this is a partition key column.

Returns:

  • (Boolean)

    true if this is a partition key column

See Also:

Since:

  • 1.0.0



143
144
145
# File 'lib/cequel/schema/column.rb', line 143

def partition_key?
  true
end