class Cequel::Schema::CompressionProperty

A property comprising key-value pairs of compression settings

Private Instance Methods

normalize_map_property(key, value) click to toggle source
# File lib/cequel/schema/table_property.rb, line 128
def normalize_map_property(key, value)
  case key
  when :sstable_compression
    value.sub(/^org\.apache\.cassandra\.io\.compress\./, '')
  when :chunk_length_kb then value.to_i
  when :crc_check_chance then value.to_f
  else value.to_s
  end
end