public class PartitionAllocationMap extends Object
| Constructor and Description |
|---|
PartitionAllocationMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(GroupPartitionId key) |
static @NotNull GroupPartitionId |
createCachePartId(@NotNull FullPageId fullId)
Extracts partition information from full page ID
|
Set<Map.Entry<GroupPartitionId,PagesAllocationRange>> |
entrySet() |
GroupPartitionId |
firstKey() |
boolean |
forceSkipIndexPartition(int grpId)
Forces the index partition for the given group ID to be skipped in collected map.
|
@Nullable PagesAllocationRange |
get(FullPageId fullPageId) |
@Nullable PagesAllocationRange |
get(GroupPartitionId key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
boolean |
isEmpty() |
Set<GroupPartitionId> |
keySet() |
@Nullable GroupPartitionId |
nextKey(@NotNull GroupPartitionId key)
Returns next (higher) key for provided cache and partition or null
|
void |
prepareForSnapshot()
Prepare map for snapshot.
|
PagesAllocationRange |
put(GroupPartitionId key,
PagesAllocationRange val) |
int |
size() |
String |
toString() |
Iterable<PagesAllocationRange> |
values() |
@Nullable public @Nullable PagesAllocationRange get(GroupPartitionId key)
null if this map contains no mapping for the key.key - to get@Nullable public @Nullable PagesAllocationRange get(FullPageId fullPageId)
fullPageId - Full page id.@NotNull public static @NotNull GroupPartitionId createCachePartId(@NotNull @NotNull FullPageId fullId)
fullId - page related to some cachepublic boolean isEmpty()
public int size()
public Set<GroupPartitionId> keySet()
public Iterable<PagesAllocationRange> values()
public GroupPartitionId firstKey()
public boolean forceSkipIndexPartition(int grpId)
grpId - Group ID to skip.true if skipped partition was added to the ignore list during this call.@Nullable public @Nullable GroupPartitionId nextKey(@NotNull @NotNull GroupPartitionId key)
key - cache and partition to searchpublic Set<Map.Entry<GroupPartitionId,PagesAllocationRange>> entrySet()
public boolean containsKey(GroupPartitionId key)
public PagesAllocationRange put(GroupPartitionId key, PagesAllocationRange val)
key - key with which the specified value is to be associatedval - value to be associated with the specified keypublic void prepareForSnapshot()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021