@InterfaceAudience.Public public interface AsyncTableRegionLocator
 Usually the implementations will not throw any exception directly, you need to get the exception
 from the returned CompletableFuture.
| Modifier and Type | Method and Description | 
|---|---|
| void | clearRegionLocationCache()Clear all the entries in the region location cache. | 
| CompletableFuture<List<HRegionLocation>> | getAllRegionLocations()Retrieves all of the regions associated with this table. | 
| default CompletableFuture<List<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 the table whose region we want to locate. | 
| default CompletableFuture<HRegionLocation> | getRegionLocation(byte[] row)Finds the region on which the given row is being served. | 
| default CompletableFuture<HRegionLocation> | getRegionLocation(byte[] row,
                 boolean reload)Finds the region on which the given row is being served. | 
| default CompletableFuture<HRegionLocation> | getRegionLocation(byte[] row,
                 int replicaId)Finds the region with the given  replicaIdon which the given row is being served. | 
| CompletableFuture<HRegionLocation> | getRegionLocation(byte[] row,
                 int replicaId,
                 boolean reload)Finds the region with the given  replicaIdon which the given row is being served. | 
| default CompletableFuture<List<HRegionLocation>> | getRegionLocations(byte[] row)Find all the replicas for the region on which the given row is being served. | 
| CompletableFuture<List<HRegionLocation>> | getRegionLocations(byte[] row,
                  boolean reload)Find all the replicas for the region on which the given row is being served. | 
| default CompletableFuture<List<Pair<byte[],byte[]>>> | getStartEndKeys()Gets the starting and ending row keys for every region in the currently open table. | 
| default CompletableFuture<List<byte[]>> | getStartKeys()Gets the starting row key for every region in the currently open table. | 
TableName getName()
default CompletableFuture<HRegionLocation> getRegionLocation(byte[] row)
row - Row to find.default CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, boolean reload)
row - Row to find.reload - true to reload information or false to use cached informationdefault CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, int replicaId)
replicaId on which the given row is being served.
 
 Returns the location of the region with the given replicaId to which the row
 belongs.row - Row to find.replicaId - the replica id of the regionCompletableFuture<HRegionLocation> getRegionLocation(byte[] row, int replicaId, boolean reload)
replicaId on which the given row is being served.
 
 Returns the location of the region with the given replicaId to which the row
 belongs.row - Row to find.replicaId - the replica id of the regionreload - true to reload information or false to use cached informationdefault CompletableFuture<List<HRegionLocation>> getRegionLocations(byte[] row)
row - Row to find.IOException - if a remote or network exception occursCompletableFuture<List<HRegionLocation>> getRegionLocations(byte[] row, boolean reload)
row - Row to find.reload - true to reload information or false to use cached informationIOException - if a remote or network exception occursCompletableFuture<List<HRegionLocation>> getAllRegionLocations()
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.default CompletableFuture<List<byte[]>> getStartKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException - if a remote or network exception occursdefault CompletableFuture<List<byte[]>> getEndKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException - if a remote or network exception occursdefault CompletableFuture<List<Pair<byte[],byte[]>>> getStartEndKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException - if a remote or network exception occursvoid clearRegionLocationCache()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.