Class: Riak::Client
- Inherits:
-
Object
- Object
- Riak::Client
- Defined in:
- lib/patches/db/riak.rb
Instance Method Summary collapse
- #buckets(options = {}, &blk) ⇒ Object
- #buckets_without_profiling ⇒ Object
- #clear_bucket_props(bucket, options = {}) ⇒ Object
- #clear_bucket_props_without_profiling ⇒ Object
- #client_id ⇒ Object
- #client_id_without_profiling ⇒ Object
- #delete_object(bucket, key, options = {}) ⇒ Object
- #delete_object_without_profiling ⇒ Object
- #get_bucket_props(bucket, options = {}) ⇒ Object
- #get_bucket_props_without_profiling ⇒ Object
- #get_index(bucket, index, query, options = {}) ⇒ Object
- #get_index_without_profiling ⇒ Object
- #get_object(bucket, key, options = {}) ⇒ Object
- #get_object_without_profiling ⇒ Object
- #get_preflist(bucket, key, type = nil, options = {}) ⇒ Object
- #get_preflist_without_profiling ⇒ Object
- #list_keys(bucket, options = {}, &block) ⇒ Object
- #list_keys_without_profiling ⇒ Object
- #mapred(mr, &block) ⇒ Object
- #mapred_without_profiling ⇒ Object
- #ping ⇒ Object
- #ping_without_profiling ⇒ Object
- #reload_object(object, options = {}) ⇒ Object
- #reload_object_without_profiling ⇒ Object
- #set_bucket_props(bucket, properties, type = nil) ⇒ Object
- #set_bucket_props_without_profiling ⇒ Object
- #store_object(object, options = {}) ⇒ Object
- #store_object_without_profiling ⇒ Object
Instance Method Details
#buckets(options = {}, &blk) ⇒ Object
21 22 23 |
# File 'lib/patches/db/riak.rb', line 21 def buckets(={}, &blk) profile("buckets #{}") { buckets_without_profiling(, &blk) } end |
#buckets_without_profiling ⇒ Object
20 |
# File 'lib/patches/db/riak.rb', line 20 alias_method :buckets_without_profiling, :buckets |
#clear_bucket_props(bucket, options = {}) ⇒ Object
81 82 83 |
# File 'lib/patches/db/riak.rb', line 81 def clear_bucket_props(bucket, ={}) profile("clear_bucket_props bucket=#{bucket.name} options=#{}") { clear_bucket_props_without_profiling(bucket, ) } end |
#clear_bucket_props_without_profiling ⇒ Object
80 |
# File 'lib/patches/db/riak.rb', line 80 alias_method :clear_bucket_props_without_profiling, :clear_bucket_props |
#client_id ⇒ Object
26 27 28 |
# File 'lib/patches/db/riak.rb', line 26 def client_id profile("client_id") { client_id_without_profiling } end |
#client_id_without_profiling ⇒ Object
25 |
# File 'lib/patches/db/riak.rb', line 25 alias_method :client_id_without_profiling, :client_id |
#delete_object(bucket, key, options = {}) ⇒ Object
31 32 33 |
# File 'lib/patches/db/riak.rb', line 31 def delete_object(bucket, key, ={}) profile("delete_object bucket=#{bucket.name} key=#{key} options=#{}") { delete_object_without_profiling(bucket, key, ) } end |
#delete_object_without_profiling ⇒ Object
30 |
# File 'lib/patches/db/riak.rb', line 30 alias_method :delete_object_without_profiling, :delete_object |
#get_bucket_props(bucket, options = {}) ⇒ Object
36 37 38 |
# File 'lib/patches/db/riak.rb', line 36 def get_bucket_props(bucket, ={}) profile("get_bucket_props bucket=#{bucket.name} options=#{}") { get_bucket_props_without_profiling(bucket, ) } end |
#get_bucket_props_without_profiling ⇒ Object
35 |
# File 'lib/patches/db/riak.rb', line 35 alias_method :get_bucket_props_without_profiling, :get_bucket_props |
#get_index(bucket, index, query, options = {}) ⇒ Object
41 42 43 |
# File 'lib/patches/db/riak.rb', line 41 def get_index(bucket, index, query, ={}) profile("get_index bucket=#{bucket.name} index=#{index} query=#{query} options=#{}") { get_index_without_profiling(bucket, index, query, ) } end |
#get_index_without_profiling ⇒ Object
40 |
# File 'lib/patches/db/riak.rb', line 40 alias_method :get_index_without_profiling, :get_index |
#get_object(bucket, key, options = {}) ⇒ Object
51 52 53 |
# File 'lib/patches/db/riak.rb', line 51 def get_object(bucket, key, ={}) profile("get_object bucket=#{bucket.name} key=#{key} options=#{}") { get_object_without_profiling(bucket, key, ) } end |
#get_object_without_profiling ⇒ Object
50 |
# File 'lib/patches/db/riak.rb', line 50 alias_method :get_object_without_profiling, :get_object |
#get_preflist(bucket, key, type = nil, options = {}) ⇒ Object
46 47 48 |
# File 'lib/patches/db/riak.rb', line 46 def get_preflist(bucket, key, type=nil, ={}) profile("get_preflist bucket=#{bucket.name} key=#{key} type=#{type} options=#{}") { get_preflist_without_profiling(bucket, key, type, ) } end |
#get_preflist_without_profiling ⇒ Object
45 |
# File 'lib/patches/db/riak.rb', line 45 alias_method :get_preflist_without_profiling, :get_preflist |
#list_keys(bucket, options = {}, &block) ⇒ Object
56 57 58 |
# File 'lib/patches/db/riak.rb', line 56 def list_keys(bucket, ={}, &block) profile("list_keys bucket=#{bucket.name} options=#{}") { list_keys_without_profiling(bucket, , &block) } end |
#list_keys_without_profiling ⇒ Object
55 |
# File 'lib/patches/db/riak.rb', line 55 alias_method :list_keys_without_profiling, :list_keys |
#mapred(mr, &block) ⇒ Object
61 62 63 |
# File 'lib/patches/db/riak.rb', line 61 def mapred(mr, &block) profile("mapred") { mapred_without_profiling(mr, &block) } end |
#mapred_without_profiling ⇒ Object
60 |
# File 'lib/patches/db/riak.rb', line 60 alias_method :mapred_without_profiling, :mapred |
#ping ⇒ Object
66 67 68 |
# File 'lib/patches/db/riak.rb', line 66 def ping profile("ping") { ping_without_profiling } end |
#ping_without_profiling ⇒ Object
65 |
# File 'lib/patches/db/riak.rb', line 65 alias_method :ping_without_profiling, :ping |
#reload_object(object, options = {}) ⇒ Object
71 72 73 |
# File 'lib/patches/db/riak.rb', line 71 def reload_object(object, ={}) profile("reload_object bucket=#{object.bucket.name} key=#{object.key} vclock=#{object.vclock} options=#{}") { reload_object_without_profiling(object, ) } end |
#reload_object_without_profiling ⇒ Object
70 |
# File 'lib/patches/db/riak.rb', line 70 alias_method :reload_object_without_profiling, :reload_object |
#set_bucket_props(bucket, properties, type = nil) ⇒ Object
76 77 78 |
# File 'lib/patches/db/riak.rb', line 76 def set_bucket_props(bucket, properties, type=nil) profile("set_bucket_props bucket=#{bucket.name} type=#{type}") { set_bucket_props_without_profiling(bucket, properties, type) } end |
#set_bucket_props_without_profiling ⇒ Object
75 |
# File 'lib/patches/db/riak.rb', line 75 alias_method :set_bucket_props_without_profiling, :set_bucket_props |
#store_object(object, options = {}) ⇒ Object
86 87 88 |
# File 'lib/patches/db/riak.rb', line 86 def store_object(object, ={}) profile("store_object bucket=#{object.bucket.name} key=#{object.key} vclock=#{object.vclock} options=#{}") { store_object_without_profiling(object, ) } end |
#store_object_without_profiling ⇒ Object
85 |
# File 'lib/patches/db/riak.rb', line 85 alias_method :store_object_without_profiling, :store_object |