com.hazelcast.core
Interface PartitioningStrategy<K>

Type Parameters:
K - key type

public interface PartitioningStrategy<K>

PartitioningStrategy allows keys to be located on the same member This makes related data to be stored in the same location. (See data-affinity.)


Method Summary
 Object getPartitionKey(K key)
          Returns the key object that will be used by Hazelcast to specify the partition.
 

Method Detail

getPartitionKey

Object getPartitionKey(K key)
Returns the key object that will be used by Hazelcast to specify the partition.

Parameters:
key - actual key object
Returns:
partition key object or null to fallback to default partition calculation


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.