mongo_mapper_parallel 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/mongo_mapper_parallel.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTg0ZjgyZjMwOTQ1MGE4YWU1YTA4MDNjZTA5ODQyY2FhYTNmZWI4Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWNiMmM4ZjZmMWFjN2E2ZDc3MTEzODUwMjI1NzQwMTQ4NGVmYWE2ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTkyOWFjOTY5YmQ0NjJiNzY1MzFlYmIwNjhhYmIxMDg5OGQ5MjM1NDI2MjMz
|
10
|
+
ZGQyYjNmMzU0MWVmMWRhOGFkNTk3NmRmNzE2NzQzNzU3N2ZjYTVkODk1OTQ4
|
11
|
+
NjhkNmYzYTBkM2ZhMWM1Y2IxYzBlNjllMmRlOTAxNTQwODllOWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2Q3ZjQ1ZGI5ZWMxNWY2ZGQ5Yjk4NTQ4ZThmODlmZGJjMjUxNDcyOGNjMmNk
|
14
|
+
MjE1M2ViYWEwYjAyNTk1NGZmNjc4M2ExMjg1ZjJiZjhjZDMyOGM1ZDBlZjA0
|
15
|
+
NzA0ZTNhYzU4NTRlMDk0ZDM0YWQ3NmEyZmQxZjBlM2EyMmE1NWI=
|
@@ -21,9 +21,9 @@ class MongoMapperParallel
|
|
21
21
|
|
22
22
|
# A chunk that will be parallelized
|
23
23
|
#
|
24
|
-
# @param key [String] the lower bound of the range of resources to retrieve
|
25
|
-
# @param future_key [String] the upper bound for the range of resources to retrieve
|
26
|
-
# @param compiler [MongoMapperParallel] the Parallel execution object that holds the keys, javascript, and arguments.
|
24
|
+
# @param :key [String] the lower bound of the range of resources to retrieve
|
25
|
+
# @param :future_key [String] the upper bound for the range of resources to retrieve
|
26
|
+
# @param :compiler [MongoMapperParallel] the Parallel execution object that holds the keys, javascript, and arguments.
|
27
27
|
#
|
28
28
|
def initialize(opts={})
|
29
29
|
@key = opts[:key]
|
@@ -63,7 +63,7 @@ class MongoMapperParallel
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# Obtains the splitVectors keys to find chunks to parallelize via the `splitVector` command.
|
66
|
+
# Obtains the splitVectors keys to find chunks to parallelize via the MongoDB `splitVector` command.
|
67
67
|
#
|
68
68
|
# @return list [Array<MongoMapperParallel::Key>] the list of the keys that will be used for parallel operation
|
69
69
|
#
|
@@ -76,10 +76,10 @@ class MongoMapperParallel
|
|
76
76
|
|
77
77
|
# Instantiates the parallel operation object with the right class, javascript function, and field
|
78
78
|
#
|
79
|
-
# @param class [Class] the Mongo collection's Ruby Class to execute operations on.
|
80
|
-
# @param javascript [String] the Javascript function in String format
|
81
|
-
# @param args [Array, Hash] the arguments to pass to the Javascript function
|
82
|
-
# @param split [String, Symbol] the field to split the computation on -- typically an indexed unique property of the resources in the collection.
|
79
|
+
# @param :class [Class] the Mongo collection's Ruby Class to execute operations on.
|
80
|
+
# @param :javascript [String] the Javascript function in String format
|
81
|
+
# @param :args [Array, Hash] the arguments to pass to the Javascript function
|
82
|
+
# @param :split [String, Symbol] the field to split the computation on -- typically an indexed unique property of the resources in the collection.
|
83
83
|
# @return list [Array<MongoMapperParallel::Key>] the list of the keys that will be used for parallel operation.
|
84
84
|
#
|
85
85
|
def initialize(opts={})
|