Interface PartitionNameProvider
public interface PartitionNameProvider
Optional interface for Partitioner
implementations that need to use a custom
naming scheme for partitions. It is not necessary to implement this interface if a
partitioner extends SimplePartitioner
and re-uses the default partition names.
If a partitioner does implement this interface, however, on a restart the
Partitioner.partition(int)
method will not be called again, instead the
partitions will be re-used from the last execution, and matched by name with the
results of getPartitionNames(int)
. This can be a useful
performance optimisation if the partitioning process is expensive.
- Since:
- 2.1.3
- Author:
- Dave Syer
-
Method Summary
-
Method Details
-
getPartitionNames
-