Module: Bramble::Keys
Class Method Summary collapse
- .data_key(handle, key) ⇒ Object
- .finished_at_key(handle) ⇒ Object
- .job_id_key(handle) ⇒ Object
- .keys_key(handle) ⇒ Object
- .map_finished_count_key(handle) ⇒ Object
- .map_total_count_key(handle) ⇒ Object
- .namespace(handle) ⇒ Object
- .reduce_finished_count_key(handle) ⇒ Object
- .reduce_total_count_key(handle) ⇒ Object
- .result_key(handle) ⇒ Object
- .status_key(handle) ⇒ Object
Class Method Details
.data_key(handle, key) ⇒ Object
9 10 11 |
# File 'lib/bramble/keys.rb', line 9 def data_key(handle, key) "#{namespace(handle)}:data:#{key}" end |
.finished_at_key(handle) ⇒ Object
45 46 47 |
# File 'lib/bramble/keys.rb', line 45 def finished_at_key(handle) "#{namespace(handle)}:finished_at" end |
.job_id_key(handle) ⇒ Object
37 38 39 |
# File 'lib/bramble/keys.rb', line 37 def job_id_key(handle) "#{namespace(handle)}:job_id" end |
.keys_key(handle) ⇒ Object
13 14 15 |
# File 'lib/bramble/keys.rb', line 13 def keys_key(handle) "#{namespace(handle)}:keys" end |
.map_finished_count_key(handle) ⇒ Object
21 22 23 |
# File 'lib/bramble/keys.rb', line 21 def map_finished_count_key(handle) "#{namespace(handle)}:map_finished_count" end |
.map_total_count_key(handle) ⇒ Object
17 18 19 |
# File 'lib/bramble/keys.rb', line 17 def map_total_count_key(handle) "#{namespace(handle)}:map_total_count" end |
.namespace(handle) ⇒ Object
5 6 7 |
# File 'lib/bramble/keys.rb', line 5 def namespace(handle) "#{Bramble.config.namespace}:#{handle}" end |
.reduce_finished_count_key(handle) ⇒ Object
29 30 31 |
# File 'lib/bramble/keys.rb', line 29 def reduce_finished_count_key(handle) "#{namespace(handle)}:reduce_finished_count" end |
.reduce_total_count_key(handle) ⇒ Object
25 26 27 |
# File 'lib/bramble/keys.rb', line 25 def reduce_total_count_key(handle) "#{namespace(handle)}:reduce_total_count" end |
.result_key(handle) ⇒ Object
33 34 35 |
# File 'lib/bramble/keys.rb', line 33 def result_key(handle) "#{namespace(handle)}:result" end |
.status_key(handle) ⇒ Object
41 42 43 |
# File 'lib/bramble/keys.rb', line 41 def status_key(handle) "#{namespace(handle)}:status" end |