@InterfaceAudience.Public public interface RegionLocator extends Closeable
Connection.ConnectionFactory, 
Connection, 
Table| Modifier and Type | Field and Description | 
|---|---|
| static String | LOCATOR_META_REPLICAS_MODEConfiguration for Region Locator's mode when meta replica is configured. | 
| static String | LOCATOR_META_REPLICAS_MODE_LOADBALANCE_SELECTORConfiguration for meta replica selector when Region Locator's LoadBalance mode is configured. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clearRegionLocationCache()Clear all the entries in the region location cache. | 
| List<HRegionLocation> | getAllRegionLocations()Retrieves all of the regions associated with this table. | 
| default byte[][] | getEndKeys()Gets the ending row key for every region in the currently open table. | 
| TableName | getName()Gets the fully qualified table name instance of this table. | 
| default HRegionLocation | getRegionLocation(byte[] row)Finds the region on which the given row is being served. | 
| default HRegionLocation | getRegionLocation(byte[] row,
                 boolean reload)Finds the region on which the given row is being served. | 
| default HRegionLocation | getRegionLocation(byte[] row,
                 int replicaId)Finds the region with the given replica id on which the given row is being served. | 
| HRegionLocation | getRegionLocation(byte[] row,
                 int replicaId,
                 boolean reload)Finds the region with the given replica id on which the given row is being served. | 
| default List<HRegionLocation> | getRegionLocations(byte[] row)Find all the replicas for the region on which the given row is being served. | 
| List<HRegionLocation> | getRegionLocations(byte[] row,
                  boolean reload)Find all the replicas for the region on which the given row is being served. | 
| default Pair<byte[][],byte[][]> | getStartEndKeys()Gets the starting and ending row keys for every region in the currently open table. | 
| default byte[][] | getStartKeys()Gets the starting row key for every region in the currently open table. | 
static final String LOCATOR_META_REPLICAS_MODE
static final String LOCATOR_META_REPLICAS_MODE_LOADBALANCE_SELECTOR
default HRegionLocation getRegionLocation(byte[] row) throws IOException
row - Row to find.IOException - if a remote or network exception occursdefault HRegionLocation getRegionLocation(byte[] row, boolean reload) throws IOException
row - Row to find.reload - true to reload information or false to use cached informationIOException - if a remote or network exception occursdefault HRegionLocation getRegionLocation(byte[] row, int replicaId) throws IOException
row - Row to find.replicaId - the replica idIOException - if a remote or network exception occursHRegionLocation getRegionLocation(byte[] row, int replicaId, boolean reload) throws IOException
row - Row to find.replicaId - the replica idreload - true to reload information or false to use cached informationIOException - if a remote or network exception occursdefault List<HRegionLocation> getRegionLocations(byte[] row) throws IOException
row - Row to find.IOException - if a remote or network exception occursList<HRegionLocation> getRegionLocations(byte[] row, boolean reload) throws IOException
row - Row to find.reload - true to reload information or false to use cached informationIOException - if a remote or network exception occursvoid clearRegionLocationCache()
List<HRegionLocation> getAllRegionLocations() throws IOException
reload
 parameter.
 
 Notice that the location for region replicas other than the default replica are also returned.List of all regions associated with this table.IOException - if a remote or network exception occursdefault byte[][] getStartKeys()
                       throws IOException
This is mainly useful for the MapReduce integration.
IOException - if a remote or network exception occursdefault byte[][] getEndKeys()
                     throws IOException
This is mainly useful for the MapReduce integration.
IOException - if a remote or network exception occursdefault Pair<byte[][],byte[][]> getStartEndKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException - if a remote or network exception occursTableName getName()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.