Class StringKeyList

java.lang.Object
org.rostore.client.StringKeyList

public class StringKeyList extends Object
The class represents the result of key listing operation.

This operation is paginated, and any request will return only a portion of the entries. The client may decide to send a new request to continue listing.

The sorting of the keys in the list returned is not guaranteed.

If isMore() is true, there are more keys in the storage, and the pagination is expected to return more results.

To continue the listing the getContinuationKey() should be used.

  • Constructor Details

    • StringKeyList

      public StringKeyList()
  • Method Details

    • getKeys

      public List<String> getKeys()
      List of keys.

      List of keys can be incomplete, it is also generally not sorted.

      Returns:
      list keys
    • setKeys

      public void setKeys(List<String> keys)
    • isMore

      public boolean isMore()
      Returns:
      true if there are more entries
    • setMore

      public void setMore(boolean more)
    • getContinuationKey

      public String getContinuationKey()
      Provides a continuation key for the next call
      Returns:
      the continuation key or null