sessionm-cassandra_object 4.0.13 → 4.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a26b2be5aae186a7f0a37133062913ebb929c87d
4
- data.tar.gz: cfd4a6c1eedddb73f71385b4751134bbb5784f4d
3
+ metadata.gz: 8d5b8754c020a2164f225fb51980c0ed60355a70
4
+ data.tar.gz: 86039a18effac02bf7b388419e162c8dbd20b852
5
5
  SHA512:
6
- metadata.gz: 0305ee08ec0936694c0a62fbd2dfbd1fc8614eec7b3636da3b32c3c27217a138244c2036619f6a45d5c2e113e075653da022fdbe2f007950f6713bc0bc537fa2
7
- data.tar.gz: e311c0a72a98fcdbd6da2915d48ef3a4e518903c2c64901cf9650336ad029c7692da6a28d6e25d42f4d204f3cfbdd6dca5da96188a559aa849083bcdddadebab
6
+ metadata.gz: b033ec8fb81bb806f0633b97aec8b18066659f41631386d969c086d505db2d93ae4daa9fc51e5ebf44a6ce8dc2bd11901a66b3f4e9ea1e79b2d0c6cdefce5342
7
+ data.tar.gz: 74edbed2735249853f0dfed08b287cc95bdc9b8905e376998609cacc584a6c73d285eb469177864249d18328bc14521999939051c72c13f2465863427df18e40
@@ -227,7 +227,7 @@ module CassandraObject
227
227
  end
228
228
 
229
229
  def add_column_family(column_family)
230
- value_type = column_family.column_type == 'Standard' ? 'text' : 'counter'
230
+ value_type = column_family.default_validation_class == 'CounterColumnType' ? 'counter' : 'text'
231
231
 
232
232
  query = <<-CQL
233
233
  CREATE TABLE "#{column_family.name}" (
@@ -235,7 +235,21 @@ CREATE TABLE "#{column_family.name}" (
235
235
  column1 text,
236
236
  value #{value_type},
237
237
  PRIMARY KEY (key, column1)
238
- )
238
+ ) WITH COMPACT STORAGE
239
+ AND CLUSTERING ORDER BY (column1 ASC)
240
+ AND bloom_filter_fp_chance = 0.1
241
+ AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
242
+ AND comment = ''
243
+ AND compaction = {'sstable_size_in_mb': '160', 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
244
+ AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.SnappyCompressor'}
245
+ AND dclocal_read_repair_chance = 0.1
246
+ AND default_time_to_live = 0
247
+ AND gc_grace_seconds = 864000
248
+ AND max_index_interval = 2048
249
+ AND memtable_flush_period_in_ms = 0
250
+ AND min_index_interval = 128
251
+ AND read_repair_chance = 0.0
252
+ AND speculative_retry = 'NONE';
239
253
  CQL
240
254
 
241
255
  self.execute(query)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '4.0.13'
5
+ s.version = '4.0.14'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sessionm-cassandra_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.13
4
+ version: 4.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-26 00:00:00.000000000 Z
12
+ date: 2016-03-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Cassandra ActiveModel
15
15
  email: doug@sessionm.com