Class: Cassanity::Column
- Inherits:
-
Object
- Object
- Cassanity::Column
- Defined in:
- lib/cassanity/column.rb
Constant Summary collapse
- Types =
{ "org.apache.cassandra.db.marshal.AsciiType" => :ascii, "org.apache.cassandra.db.marshal.BooleanType" => :boolean, "org.apache.cassandra.db.marshal.BytesType" => :blob, "org.apache.cassandra.db.marshal.CounterColumnType" => :counter, "org.apache.cassandra.db.marshal.DateType" => :timestamp, "org.apache.cassandra.db.marshal.DecimalType" => :decimal, "org.apache.cassandra.db.marshal.DoubleType" => :double, "org.apache.cassandra.db.marshal.FloatType" => :float, "org.apache.cassandra.db.marshal.Int32Type" => :int, "org.apache.cassandra.db.marshal.InetAddressType" => :inet, "org.apache.cassandra.db.marshal.IntegerType" => :varint, "org.apache.cassandra.db.marshal.LongType" => :bigint, "org.apache.cassandra.db.marshal.TimeUUIDType" => :timeuuid, "org.apache.cassandra.db.marshal.UTF8Type" => :text, "org.apache.cassandra.db.marshal.UUIDType" => :uuid, }
Instance Attribute Summary collapse
-
#column_family ⇒ Object
readonly
Public: The Cassanity::ColumnFamily the column is in.
-
#name ⇒ Object
readonly
Public: The name of the column.
-
#type ⇒ Object
readonly
Public: The type of the column.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Column
constructor
A new instance of Column.
-
#inspect ⇒ Object
Public.
Constructor Details
Instance Attribute Details
#column_family ⇒ Object (readonly)
Public: The Cassanity::ColumnFamily the column is in.
29 30 31 |
# File 'lib/cassanity/column.rb', line 29 def column_family @column_family end |
#name ⇒ Object (readonly)
Public: The name of the column.
23 24 25 |
# File 'lib/cassanity/column.rb', line 23 def name @name end |
#type ⇒ Object (readonly)
Public: The type of the column.
26 27 28 |
# File 'lib/cassanity/column.rb', line 26 def type @type end |
Instance Method Details
#inspect ⇒ Object
Public
39 40 41 42 43 44 45 46 |
# File 'lib/cassanity/column.rb', line 39 def inspect attributes = [ "name=#{@name.inspect}", "type=#{@type.inspect}", "column_family=#{@column_family.inspect}", ] "#<#{self.class.name}:#{object_id} #{attributes.join(', ')}>" end |