public enum DataPageEvictionMode extends Enum<DataPageEvictionMode>
DataRegionConfiguration
. Only data pages, that store key-value entries, are eligible for eviction. The
other types of pages, like index or meta pages, are not evictable.Enum Constant and Description |
---|
DISABLED
Eviction is disabled.
|
RANDOM_2_LRU
Random-2-LRU algorithm: scan-resistant version of Random-LRU.
|
RANDOM_LRU
Random-LRU algorithm.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable DataPageEvictionMode |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static DataPageEvictionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataPageEvictionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataPageEvictionMode DISABLED
public static final DataPageEvictionMode RANDOM_LRU
DataRegionConfiguration.getMaxSize()
/ DataStorageConfiguration.pageSize
)DataRegionConfiguration.getMaxSize()
public static final DataPageEvictionMode RANDOM_2_LRU
This algorithm differs from Random-LRU only in a way that two latest access timestamps are stored for every data page. At the eviction time, a minimum between two latest timestamps is taken for further comparison with minimums of other pages that might be evicted. LRU-2 outperforms LRU by resolving "one-hit wonder" problem - if a data page is accessed rarely, but accidentally accessed once, it's protected from eviction for a long time.
public static DataPageEvictionMode[] values()
for (DataPageEvictionMode c : DataPageEvictionMode.values()) System.out.println(c);
public static DataPageEvictionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static @Nullable DataPageEvictionMode fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024