public interface TokenRangeSplitter
| Modifier and Type | Method and Description |
|---|---|
List<BulkTokenRange> |
split(BulkTokenRange tokenRange,
int splitCount)
Splits the given token range uniformly into sub-ranges with the given desired split count.
|
default List<BulkTokenRange> |
split(Iterable<BulkTokenRange> tokenRanges,
int splitCount)
Splits the given ranges uniformly into (smaller)
splitCount chunks. |
@NonNull default List<BulkTokenRange> split(@NonNull Iterable<BulkTokenRange> tokenRanges, int splitCount)
splitCount chunks.
Note that the algorithm is size-based and doesn't guarantee exact split count.
tokenRanges - The ranges to split.splitCount - The desired number of resulting chunks.splitCount chunks.@NonNull List<BulkTokenRange> split(@NonNull BulkTokenRange tokenRange, int splitCount)
Note that the algorithm is size-based and doesn't guarantee exact split count.
tokenRange - The range to split.splitCount - The desired number of resulting chunks.splitCount chunks.Copyright © 2017–2020 DataStax. All rights reserved.