Sha256: 8278f2cab11e2f2ff519e6f9954baaeb1adc5e2393d22397cb447d0a37de21d5

Contents?: true

Size: 1.52 KB

Versions: 30

Compression:

Stored size: 1.52 KB

Contents

Oh thanks.

Having the function would be great.

-Abhishek Kona

On 01/03/11 7:07 PM, Russell Brown wrote:
> Hi,
> On Tue, 2011-03-01 at 18:02 +0530, Abhishek Kona wrote:
>> Hi folks
>>
>> What is the best way to clear a Riak bucket of all key, values after
>> running a test?
>> I am currently using the Java HTTP API.
> You can list the keys for the bucket and call delete for each. Or if you
> put the keys (and kept track of them in your test) you can delete them
> one at a time (without incurring the cost of calling list first.)
>
> Something like:
>
>          String bucket = "my_bucket";
>          BucketResponse bucketResponse = riakClient.listBucket(bucket);
>          RiakBucketInfo bucketInfo = bucketResponse.getBucketInfo();
>
>          for(String key : bucketInfo.getKeys()) {
>              riakClient.delete(bucket, key);
>          }
>
>
> would do it.
>
> See also
>
> http://wiki.basho.com/REST-API.html#Bucket-operations
>
> which says
>
> "At the moment there is no straightforward way to delete an entire
> Bucket. There is, however, an open ticket for the feature. To delete all
> the keys in a bucket, you’ll need to delete them all individually."
>
>> -Abhishek Kona
>>
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>


_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Version data entries

30 entries across 30 versions & 6 rubygems

Version Path
email_reply_parser-0.5.11 test/emails/email_1_3.txt
email_reply_parser-0.5.10 test/emails/email_1_3.txt
email_reply_parser-0.5.9 test/emails/email_1_3.txt
email_reply_parser-0.5.8 test/emails/email_1_3.txt
replyr-0.1.0 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.9 test/email_reply_parser/emails/email_1_3.txt
email_reply_parser-0.5.7 test/emails/email_1_3.txt
email_reply_parser-0.5.6 test/emails/email_1_3.txt
replyr-0.0.8 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.7 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.6 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.5 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.4 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.3 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.2 test/email_reply_parser/emails/email_1_3.txt
replyr-0.0.1 test/email_reply_parser/emails/email_1_3.txt
email_reply_parser-discourse-0.6 test/emails/email_1_3.txt
email_reply_parser-0.5.5 test/emails/email_1_3.txt
email_reply_parser-0.5.4 test/emails/email_1_3.txt
tr_email_reply_parser-0.6.0 test/emails/email_1_3.txt