public class PartitionAllocationMap extends Object
| Constructor and Description |
|---|
PartitionAllocationMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(GroupPartitionId key) |
static GroupPartitionId |
createCachePartId(FullPageId fullId)
Extracts partition information from full page ID
|
Set<Map.Entry<GroupPartitionId,PagesAllocationRange>> |
entrySet() |
GroupPartitionId |
firstKey() |
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() |
GroupPartitionId |
nextKey(GroupPartitionId key)
Returns next (higher) key for provided cache and partition or null
|
PagesAllocationRange |
put(GroupPartitionId key,
PagesAllocationRange val) |
int |
size() |
Iterable<PagesAllocationRange> |
values() |
@Nullable public PagesAllocationRange get(GroupPartitionId key)
null if this map contains no mapping for the key.key - to get@NotNull public static GroupPartitionId createCachePartId(@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()
@Nullable public GroupPartitionId nextKey(@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 key
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017