public enum ReadRepairStrategy extends Enum<ReadRepairStrategy>
for details.
Enum Constant and Description |
---|
CHECK_ONLY
Only check will be performed.
|
LWW
Last write (the newest entry) wins.
|
PRIMARY
Value from the primary node wins.
|
RELATIVE_MAJORITY
The relative majority, any value found more times than any other wins.
|
REMOVE
Inconsistent entries will be removed.
|
Modifier and Type | Method and Description |
---|---|
static ReadRepairStrategy |
fromString(String name)
Provides strategy by name.
|
static ReadRepairStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadRepairStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadRepairStrategy LWW
May cause IgniteException
when fix is impossible (unable to detect the newest entry):
Null (missed entry) has no version, so, it can not be compared with the versioned entry.
public static final ReadRepairStrategy PRIMARY
public static final ReadRepairStrategy RELATIVE_MAJORITY
Works for an even number of copies (which is typical of Ignite) instead of an absolute majority.
May cause IgniteException
when it is unable to detect values found more times than any other.
For example, when 5 copies (4 backups) are given and value `A` is found twice, but `X`, `Y`, and `Z` only once, `A` wins. But, when `A` is found twice, as well as `B`, and `X` only once, the strategy is unable to determine the winner.
When 4 copies (3 backups) are given, any value found two or more times, when others are found only once, is the winner.
public static final ReadRepairStrategy REMOVE
public static final ReadRepairStrategy CHECK_ONLY
public static ReadRepairStrategy[] values()
for (ReadRepairStrategy c : ReadRepairStrategy.values()) System.out.println(c);
public static ReadRepairStrategy 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 nullpublic static ReadRepairStrategy fromString(String name)
name
- Text.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023