get_sort_keys

获取一个hashkey下的sortkey值

  1. def get_sort_keys(self, hash_key,
  2. max_kv_count=100,
  3. max_kv_size=1000000,
  4. timeout=0):
  5. """
  6. Get multiple sort keys under hash_key.
  7. :param hash_key: (str) which hash key used for this API.
  8. :param max_kv_count: (int) max count of k-v pairs to be fetched. max_fetch_count <= 0 means no limit.
  9. :param max_kv_size: (int) max total data size of k-v pairs to be fetched. max_fetch_size <= 0 means no limit.
  10. :param timeout: (int) how long will the operation timeout in milliseconds.
  11. if timeout > 0, it is a timeout value for current operation,
  12. else the timeout value specified to create the instance will be used.
  13. :return: (tuple<error_types.code.value, set>) (code, ks)
  14. code: error_types.ERR_OK.value when data got succeed.
  15. ks: <sort_key, ign> pairs in dict, ign will always be empty str.
  16. """