public class GridDhtPartitionFullMap extends HashMap<UUID,GridDhtPartitionMap> implements Comparable<GridDhtPartitionFullMap>, Externalizable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GridDhtPartitionFullMap()
Empty constructor required for
Externalizable. |
GridDhtPartitionFullMap(GridDhtPartitionFullMap m,
long updateSeq) |
GridDhtPartitionFullMap(UUID nodeId,
long nodeOrder,
long updateSeq) |
GridDhtPartitionFullMap(UUID nodeId,
long nodeOrder,
long updateSeq,
Map<UUID,GridDhtPartitionMap> m,
boolean onlyActive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull GridDhtPartitionFullMap o) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
map2string() |
void |
newUpdateSequence(long updateSeq) |
UUID |
nodeId() |
long |
nodeOrder() |
boolean |
partitionStateEquals(GridDhtPartitionFullMap fullMap) |
void |
readExternal(ObjectInput in) |
String |
toFullString() |
String |
toString() |
long |
updateSequence() |
long |
updateSequence(long updateSeq) |
boolean |
valid() |
void |
writeExternal(ObjectOutput out) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic GridDhtPartitionFullMap(UUID nodeId, long nodeOrder, long updateSeq)
nodeId - Node ID.nodeOrder - Node order.updateSeq - Update sequence number.public GridDhtPartitionFullMap(UUID nodeId, long nodeOrder, long updateSeq, Map<UUID,GridDhtPartitionMap> m, boolean onlyActive)
nodeId - Node ID.nodeOrder - Node order.updateSeq - Update sequence number.m - Map to copy.onlyActive - If true, then only active partitions will be included.public GridDhtPartitionFullMap(GridDhtPartitionFullMap m, long updateSeq)
m - Map to copy.updateSeq - Update sequence.public GridDhtPartitionFullMap()
Externalizable.public boolean valid()
True if properly initialized.public UUID nodeId()
public long nodeOrder()
public long updateSequence()
public boolean partitionStateEquals(GridDhtPartitionFullMap fullMap)
fullMap - Map.True if this map and given map contain the same data.public void newUpdateSequence(long updateSeq)
updateSeq - New update sequence value.public long updateSequence(long updateSeq)
updateSeq - New update sequence value.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic boolean equals(Object o)
equals in interface Map<UUID,GridDhtPartitionMap>equals in class AbstractMap<UUID,GridDhtPartitionMap>public int hashCode()
hashCode in interface Map<UUID,GridDhtPartitionMap>hashCode in class AbstractMap<UUID,GridDhtPartitionMap>public String map2string()
public String toFullString()
public String toString()
toString in class AbstractMap<UUID,GridDhtPartitionMap>public int compareTo(@NotNull
@NotNull GridDhtPartitionFullMap o)
compareTo in interface Comparable<GridDhtPartitionFullMap>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021