public class IgniteDhtDemandedPartitionsMap extends Object implements Serializable
| Constructor and Description |
|---|
IgniteDhtDemandedPartitionsMap() |
IgniteDhtDemandedPartitionsMap(CachePartitionPartialCountersMap historical,
Set<Integer> full) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFull(int partId)
Adds partition for preloading from all current data.
|
void |
addHistorical(int partId,
long from,
long to,
int partCnt)
Adds partition for preloading from history.
|
Set<Integer> |
fullSet() |
boolean |
hasFull() |
boolean |
hasFull(int partId) |
boolean |
hasHistorical() |
boolean |
hasHistorical(int partId) |
boolean |
hasPartition(int partId) |
CachePartitionPartialCountersMap |
historicalMap() |
Set<Integer> |
historicalSet() |
boolean |
isEmpty() |
boolean |
remove(int partId)
Removes partition.
|
int |
size() |
String |
toString() |
public IgniteDhtDemandedPartitionsMap(@Nullable
CachePartitionPartialCountersMap historical,
@Nullable
Set<Integer> full)
public IgniteDhtDemandedPartitionsMap()
public void addHistorical(int partId,
long from,
long to,
int partCnt)
partId - Partition ID.from - First demanded counter.to - Last demanded counter.partCnt - Maximum possible partition count.public void addFull(int partId)
partId - Partition ID.public boolean remove(int partId)
partId - Partition ID.True if changed.public boolean hasPartition(int partId)
public boolean hasHistorical()
public boolean hasHistorical(int partId)
public boolean hasFull()
public boolean hasFull(int partId)
public boolean isEmpty()
public int size()
public CachePartitionPartialCountersMap historicalMap()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019