|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.core.PartitionAwareKey<K,P>
K - P - public final class PartitionAwareKey<K,P>
A PartitionAware key. This is useful in combination with a Map where you want to control the
partition of a key.
| Constructor Summary | |
|---|---|
PartitionAwareKey(K key,
P partitionKey)
Creates a new PartitionAwareKey. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object thatObject)
|
K |
getKey()
Gets the key (not the partitionKey). |
P |
getPartitionKey()
The key that will be used by Hazelcast to specify the partition. |
int |
hashCode()
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
String |
toString()
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionAwareKey(K key,
P partitionKey)
key - the keypartitionKey - the partitionKey
IllegalArgumentException - if key or partitionKey is null.| Method Detail |
|---|
public K getKey()
public P getPartitionKey()
PartitionAware
getPartitionKey in interface PartitionAware<Object>
public void writeData(ObjectDataOutput out)
throws IOException
DataSerializable
writeData in interface DataSerializableout - output
IOException
public void readData(ObjectDataInput in)
throws IOException
DataSerializable
readData in interface DataSerializablein - input
IOExceptionpublic boolean equals(Object thatObject)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||