|
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 PartitionableKey
This interface is used to identify keys that want to use their
own partitioning algorithm. If a key supports this interface, ObjectGrid
will call the ibmGetPartition()
method to prime the partitioning
process. The returned Object needs to support the hashCode() method which will be
used by ObjectGrid to spread the data requests across the set of
configured partitions.
If this interface is not used, then the hashCode() method on the key
itself will be used to prime the partitioning process.
Method Summary | |
---|---|
Object |
ibmGetPartition()
Used to obtain an object from the key that should be used for partitioning. |
Method Detail |
---|
Object ibmGetPartition()
The returned Object could be a String, an Integer, or any Object that
properly identifies the desired partition. ObjectGrid will use this
returned Object's hashCode()
method to prime the
partitioning process.
|
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 |