Class: BigRecordDriver::ColumnDescriptor
- Inherits:
-
Object
- Object
- BigRecordDriver::ColumnDescriptor
- Defined in:
- lib/big_record_driver/column_descriptor.rb
Instance Attribute Summary collapse
-
#bloom_filter ⇒ Object
Returns the value of attribute bloom_filter.
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#in_memory ⇒ Object
Returns the value of attribute in_memory.
-
#name ⇒ Object
Returns the value of attribute name.
-
#versions ⇒ Object
Returns the value of attribute versions.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ ColumnDescriptor
constructor
A new instance of ColumnDescriptor.
Constructor Details
#initialize(name, options = {}) ⇒ ColumnDescriptor
Returns a new instance of ColumnDescriptor.
11 12 13 14 15 16 17 18 19 |
# File 'lib/big_record_driver/column_descriptor.rb', line 11 def initialize(name, ={}) raise ArgumentError, "name is mandatory" unless name @name = name.to_s @versions = [:versions] @in_memory = [:in_memory] @bloom_filter = [:bloom_filter] @compression = [:compression] end |
Instance Attribute Details
#bloom_filter ⇒ Object
Returns the value of attribute bloom_filter.
8 9 10 |
# File 'lib/big_record_driver/column_descriptor.rb', line 8 def bloom_filter @bloom_filter end |
#compression ⇒ Object
Returns the value of attribute compression.
9 10 11 |
# File 'lib/big_record_driver/column_descriptor.rb', line 9 def compression @compression end |
#in_memory ⇒ Object
Returns the value of attribute in_memory.
7 8 9 |
# File 'lib/big_record_driver/column_descriptor.rb', line 7 def in_memory @in_memory end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/big_record_driver/column_descriptor.rb', line 5 def name @name end |
#versions ⇒ Object
Returns the value of attribute versions.
6 7 8 |
# File 'lib/big_record_driver/column_descriptor.rb', line 6 def versions @versions end |