keys list from java client

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


Hi,

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();

     while(it.hasNext()){

     key = (String) it.next();

     if(filter.accept(key)){

      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 andreacfm.com
http://www.andreacfm.com

Railo Team
andrea at getrailo.org
http://getrailo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20101024/1190687c/attachment.html>


More information about the riak-users mailing list