Package org.apache.hadoop.hbase.client
Interface CatalogReplicaLoadBalanceSelector
- All Known Implementing Classes:
CatalogReplicaLoadBalanceSimpleSelector
A Catalog replica selector decides which catalog replica to go for read requests when it is
configured as CatalogReplicaMode.LoadBalance.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onError
(HRegionLocation loc) This method is called when input location is stale, i.e, when clients run into org.apache.hadoop.hbase.NotServingRegionException.int
select
(TableName tablename, byte[] row, RegionLocateType locateType) Select a catalog replica region where client go to loop up the input row key.
-
Field Details
-
UNINITIALIZED_NUM_OF_REPLICAS
- See Also:
-
-
Method Details
-
onError
This method is called when input location is stale, i.e, when clients run into org.apache.hadoop.hbase.NotServingRegionException.- Parameters:
loc
- stale location
-
select
Select a catalog replica region where client go to loop up the input row key.- Parameters:
tablename
- table namerow
- key to look uplocateType
- locate type- Returns:
- replica id
-