sessionm-cassandra_object 4.0.30 → 4.0.31
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 050c07c081bb084f948f111400f1b416d091b1b8
|
4
|
+
data.tar.gz: 9531fe877770aa1843f7a7d1840aa06ce3243ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f01fcc0d6fa7b43d4510955a4c80f816986f60587961fbc085bfa03543417c8236467688afb4726464dea8c950c2433e352c888fba3c7dcc00d88940a2ed6eb
|
7
|
+
data.tar.gz: eec1e1c61f637ecf51bdd035dcac2ddc97eb8c315aa8af15042435566608cd90fbff8b9370cbc49be4f8ff926a5d92b3975158bb67044fdaaf91c8c253370740
|
@@ -211,6 +211,14 @@ module CassandraObject
|
|
211
211
|
async ? self.execute_async(query, execute_options(opts)) : self.execute(query, execute_options(opts))
|
212
212
|
end
|
213
213
|
|
214
|
+
def count_range(column_family, options = {})
|
215
|
+
get_range_keys(column_family, options).length
|
216
|
+
end
|
217
|
+
|
218
|
+
def get_range_keys(column_family, options = {})
|
219
|
+
get_range(column_family,options.merge!(:count => 1)).keys
|
220
|
+
end
|
221
|
+
|
214
222
|
def get_range(column_family, opts={}, &blk)
|
215
223
|
key_count = opts[:key_count] || 100
|
216
224
|
query = "SELECT #{KEY_FIELD} FROM \"#{column_family}\" LIMIT #{key_count}"
|
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.
|
4
|
+
version: 4.0.31
|
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: 2017-12-
|
12
|
+
date: 2017-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Cassandra ActiveModel
|
15
15
|
email: doug@sessionm.com
|