T
- Type of data being appended to depotpublic static interface Depot.Partitioning<T> extends RamaSerializable
Modifier and Type | Method and Description |
---|---|
int |
choosePartitionIndex(T data,
int numPartitions)
Computes partition number for append based on data and
number of partitions in depot
|
int choosePartitionIndex(T data, int numPartitions)
data
- Data being appendednumPartitions
- Number of partitions of depot