keys list from java client

Andrea Campolonghi acampolonghi at
Sun Oct 24 13:23:27 EDT 2010


I am trying to get a keys list using the java driver like this:

    BucketResponse r = this.rc.listBucket(this.bucket);

 String key;

 int counter =0;

  if (r.isSuccess()) {

 RiakBucketInfo info = r.getBucketInfo();

     Collection<String> keys = info.getKeys();

     Iterator it = keys.iterator();


     key = (String);


      if(remove(key)) counter++;




My issue is that I always get an emtpy list while I am sure keys exists in
the bucket.

Any suggestion?

Andrea Campolonghi

Cell : +39 347 2298435
andrea at

Railo Team
andrea at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list