@InterfaceAudience.Public
public interface AsyncTableRegionLocator
Usually the implementations will not throw any exception directly, you need to get the exception
from the returned CompletableFuture
.
限定符和类型 | 方法和说明 |
---|---|
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.
|
CompletableFuture<HRegionLocation> |
getRegionLocation(byte[] row,
boolean reload)
Finds the region 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.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 informationCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.