Searched refs:sorted_keys (Results 1 – 5 of 5) sorted by relevance
254 def _choose_split_points(cls, sorted_keys, shard_count): argument256 assert len(sorted_keys) >= shard_count257 index_stride = len(sorted_keys) / float(shard_count)258 return [sorted_keys[int(round(index_stride * i))]
199 sorted_keys = names.keys()200 sorted_keys.sort()204 for name in sorted_keys:
228 sorted_keys = []230 sorted_keys.append(i)231 sorted_keys.sort()232 for k in sorted_keys:
514 def _choose_split_points(cls, sorted_keys, shard_count): argument516 assert len(sorted_keys) >= shard_count517 index_stride = len(sorted_keys) / float(shard_count)518 return [sorted_keys[int(round(index_stride * i))]972 def _choose_split_points(cls, sorted_keys, shard_count): argument974 assert len(sorted_keys) >= shard_count975 index_stride = len(sorted_keys) / float(shard_count)976 return [sorted_keys[int(round(index_stride * i))]
188 sorted_keys = []190 sorted_keys.append(i)191 sorted_keys.sort()192 for k in sorted_keys: