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
23 24 25 |
# File 'lib/patches/db/riak.rb', line 23 def buckets( = {}, &blk) profile("buckets #{}") { buckets_without_profiling(, &blk) } end |
#buckets_without_profiling ⇒ Object
22 |
# File 'lib/patches/db/riak.rb', line 22 alias_method :buckets_without_profiling, :buckets |
#clear_bucket_props(bucket, options = {}) ⇒ Object
83 84 85 |
# File 'lib/patches/db/riak.rb', line 83 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
82 |
# File 'lib/patches/db/riak.rb', line 82 alias_method :clear_bucket_props_without_profiling, :clear_bucket_props |
#client_id ⇒ Object
28 29 30 |
# File 'lib/patches/db/riak.rb', line 28 def client_id profile("client_id") { client_id_without_profiling } end |
#client_id_without_profiling ⇒ Object
27 |
# File 'lib/patches/db/riak.rb', line 27 alias_method :client_id_without_profiling, :client_id |
#delete_object(bucket, key, options = {}) ⇒ Object
33 34 35 |
# File 'lib/patches/db/riak.rb', line 33 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
32 |
# File 'lib/patches/db/riak.rb', line 32 alias_method :delete_object_without_profiling, :delete_object |
#get_bucket_props(bucket, options = {}) ⇒ Object
38 39 40 |
# File 'lib/patches/db/riak.rb', line 38 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
37 |
# File 'lib/patches/db/riak.rb', line 37 alias_method :get_bucket_props_without_profiling, :get_bucket_props |
#get_index(bucket, index, query, options = {}) ⇒ Object
43 44 45 |
# File 'lib/patches/db/riak.rb', line 43 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
42 |
# File 'lib/patches/db/riak.rb', line 42 alias_method :get_index_without_profiling, :get_index |
#get_object(bucket, key, options = {}) ⇒ Object
53 54 55 |
# File 'lib/patches/db/riak.rb', line 53 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
52 |
# File 'lib/patches/db/riak.rb', line 52 alias_method :get_object_without_profiling, :get_object |
#get_preflist(bucket, key, type = nil, options = {}) ⇒ Object
48 49 50 |
# File 'lib/patches/db/riak.rb', line 48 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
47 |
# File 'lib/patches/db/riak.rb', line 47 alias_method :get_preflist_without_profiling, :get_preflist |
#list_keys(bucket, options = {}, &block) ⇒ Object
58 59 60 |
# File 'lib/patches/db/riak.rb', line 58 def list_keys(bucket, = {}, &block) profile("list_keys bucket=#{bucket.name} options=#{}") { list_keys_without_profiling(bucket, , &block) } end |
#list_keys_without_profiling ⇒ Object
57 |
# File 'lib/patches/db/riak.rb', line 57 alias_method :list_keys_without_profiling, :list_keys |
#mapred(mr, &block) ⇒ Object
63 64 65 |
# File 'lib/patches/db/riak.rb', line 63 def mapred(mr, &block) profile("mapred") { mapred_without_profiling(mr, &block) } end |
#mapred_without_profiling ⇒ Object
62 |
# File 'lib/patches/db/riak.rb', line 62 alias_method :mapred_without_profiling, :mapred |
#ping ⇒ Object
68 69 70 |
# File 'lib/patches/db/riak.rb', line 68 def ping profile("ping") { ping_without_profiling } end |
#ping_without_profiling ⇒ Object
67 |
# File 'lib/patches/db/riak.rb', line 67 alias_method :ping_without_profiling, :ping |
#reload_object(object, options = {}) ⇒ Object
73 74 75 |
# File 'lib/patches/db/riak.rb', line 73 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
72 |
# File 'lib/patches/db/riak.rb', line 72 alias_method :reload_object_without_profiling, :reload_object |
#set_bucket_props(bucket, properties, type = nil) ⇒ Object
78 79 80 |
# File 'lib/patches/db/riak.rb', line 78 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
77 |
# File 'lib/patches/db/riak.rb', line 77 alias_method :set_bucket_props_without_profiling, :set_bucket_props |
#store_object(object, options = {}) ⇒ Object
88 89 90 |
# File 'lib/patches/db/riak.rb', line 88 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
87 |
# File 'lib/patches/db/riak.rb', line 87 alias_method :store_object_without_profiling, :store_object |