Package org.apache.hadoop.hbase
Enum CatalogReplicaMode
- All Implemented Interfaces:
Serializable
,Comparable<CatalogReplicaMode>
There are two modes with catalog replica support.
- HEDGED_READ - Client sends requests to the primary region first, within a configured amount of time, if there is no response coming back, client sends requests to all replica regions and takes the first response.
- LOAD_BALANCE - Client sends requests to replica regions in a round-robin mode, if results from replica regions are stale, next time, client sends requests for these stale locations to the primary region. In this mode, scan requests are load balanced across all replica regions.
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogReplicaMode
fromString
(String value) static CatalogReplicaMode
Returns the enum constant of this type with the specified name.static CatalogReplicaMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
HEDGED_READ
-
LOAD_BALANCE
-
-
Constructor Details
-
CatalogReplicaMode
private CatalogReplicaMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
-