|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PartitionManager
This interface will be used for calculating the proper partition for a given input key. The set of partitions is determined by the BackingMap configuration.
BackingMap.getPartitionManager()
Method Summary | |
---|---|
int |
getNumOfPartitions()
Returns the number of configured partitions for this PartitionManager. |
int |
getPartition(Object key)
Obtains a 0-based partition number determined by the input parameter's hashCode() method. |
List |
getPartitionLists(List keyList)
This method is very similar to getPartitions(List) , except
it returns the keys organized by the partition identifiers. |
List |
getPartitions(List keyList)
Obtains the 0-based partition numbers for each of the keys in the input List of keys. |
List |
partitionLogSequence(LogSequence ls)
Partitions a LogSequence based on the partitioning
algorithm for the Map. |
Method Detail |
---|
int getPartition(Object key)
key
- Individual key used to determine partition (can not be null)
List getPartitions(List keyList)
List
of keys. Each object in the returned list of
partition identifiers is an instance of java.lang.Integer
.
keyList
- Ordered list of keys
List getPartitionLists(List keyList)
getPartitions(List)
, except
it returns the keys organized by the partition identifiers. The return
value is a List
of List
s. The outer
List
is an ordered List
of the partition
numbers, with the first entry in the List
corresponding to
partition 0. The inner List
s contain the keys from the input
parameter that correspond to that partition identifier.
The return value will always contain a List
object. Either
the outer or the inner List
s may contain zero elements, but
the List
objects themselves will not be null
.
keyList
- Ordered list of keys
List partitionLogSequence(LogSequence ls)
LogSequence
based on the partitioning
algorithm for the Map.
ls
- LogSequence that needs to be partitioned
int getNumOfPartitions()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |