2 Replies Latest reply: May 20, 2014 11:58 AM by user12033180 RSS

    How to retrieve all the keys of a particular database?

    user12033180

      Hi,

       

      I need to get all the primary keys of database and assign to java list. I found that the PrimaryIndex.keys() provides all the keys and returns an EntityCursor<K>. So, using this method I need to traverse through the entire cursor to collect all the key values. Is there any better/efficient method available to get all the keys which I can assign to a java list?

       

      Any help is highly appreciated.

       

      Thanks,

      Bibhu