class Cequel::Schema::CompactionProperty

A property comprising key-value pairs of compaction settings

Private Instance Methods

normalize_map_property(key, value) click to toggle source
# File lib/cequel/schema/table_property.rb, line 110
def normalize_map_property(key, value)
  case key
  when :class
    value.sub(/^org\.apache\.cassandra\.db\.compaction\./, '')
  when :bucket_high, :bucket_low, :tombstone_threshold then value.to_f
  when :max_threshold, :min_threshold, :min_sstable_size,
    :sstable_size_in_mb, :tombstone_compaction_interval then value.to_i
  else value.to_s
  end
end