Package org.apache.hadoop.hbase
Enum Class CatalogReplicaMode
- All Implemented Interfaces:
Serializable
,Comparable<CatalogReplicaMode>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogReplicaMode
fromString
(String value) static CatalogReplicaMode
Returns the enum constant of this class with the specified name.static CatalogReplicaMode[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
-