Package com.rpl.rama
Interface Depot.Partitioning<T>
- Type Parameters:
T- Type of data being appended to depot
- All Superinterfaces:
RamaSerializable,Serializable
- Enclosing interface:
Depot
Interface for implementing custom depot partitioners
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintchoosePartitionIndex(T data, int numPartitions) Computes partition number for append based on data and number of partitions in depot
-
Method Details
-
choosePartitionIndex
Computes partition number for append based on data and number of partitions in depot- Parameters:
data- Data being appendednumPartitions- Number of partitions of depot- Returns:
- Partition number to append to between 0 and numPartitions
-