@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 |
---|---|
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
replicaId on which the given row is being served. |
CompletableFuture<HRegionLocation> |
getRegionLocation(byte[] row,
int replicaId,
boolean reload)
Finds the region with the given
replicaId on which the given row is being served. |
TableName getName()
default CompletableFuture<HRegionLocation> getRegionLocation(byte[] row)
Returns the location of the region to which the row belongs.
row
- Row to find.default CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, boolean reload)
Returns the location of the region to which the row belongs.
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 informationCopyright © 2007–2019 Cloudera. All rights reserved.