Class: BigRecordDriver::ColumnDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/big_record_driver/column_descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ ColumnDescriptor

Returns a new instance of ColumnDescriptor.

Raises:

  • (ArgumentError)


11
12
13
14
15
16
17
18
19
# File 'lib/big_record_driver/column_descriptor.rb', line 11

def initialize(name, options={})
  raise ArgumentError, "name is mandatory" unless name

  @name = name.to_s
  @versions         = options[:versions]
  @in_memory        = options[:in_memory]
  @bloom_filter     = options[:bloom_filter]
  @compression      = options[:compression]
end

Instance Attribute Details

#bloom_filterObject

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

#compressionObject

Returns the value of attribute compression.



9
10
11
# File 'lib/big_record_driver/column_descriptor.rb', line 9

def compression
  @compression
end

#in_memoryObject

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

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/big_record_driver/column_descriptor.rb', line 5

def name
  @name
end

#versionsObject

Returns the value of attribute versions.



6
7
8
# File 'lib/big_record_driver/column_descriptor.rb', line 6

def versions
  @versions
end