Package com.hazelcast.partition.strategy
Class StringPartitioningStrategy
java.lang.Object
com.hazelcast.partition.strategy.StringPartitioningStrategy
- All Implemented Interfaces:
PartitioningStrategy,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseName(String name) getPartitionKey(Object key) Returns the key object that will be used by Hazelcast to specify the partition.static StringgetPartitionKey(String key)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StringPartitioningStrategy
public StringPartitioningStrategy()
-
-
Method Details
-
getPartitionKey
Description copied from interface:PartitioningStrategyReturns the key object that will be used by Hazelcast to specify the partition.- Specified by:
getPartitionKeyin interfacePartitioningStrategy- Parameters:
key- actual key object used by Hazelcast to specify the partition- Returns:
- the partition key object, or null to fall back to the default partition calculation
-
getBaseName
-
getPartitionKey
-