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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

  • 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

      int select(TableName tablename, byte[] row, RegionLocateType locateType)
      Select a catalog replica region where client go to loop up the input row key.
      Parameters:
      tablename - table name
      row - key to look up
      locateType - locate type
      Returns:
      replica id