@InterfaceAudience.Private class AsyncTableRegionLocatorImpl extends Object implements AsyncTableRegionLocator
| Modifier and Type | Field and Description |
|---|---|
private AsyncRegionLocator |
locator |
private TableName |
tableName |
| Constructor and Description |
|---|
AsyncTableRegionLocatorImpl(TableName tableName,
AsyncRegionLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
TableName |
getName()
Gets the fully qualified table name instance of the table whose region we want to locate.
|
CompletableFuture<HRegionLocation> |
getRegionLocation(byte[] row,
int replicaId,
boolean reload)
Finds the region with the given
replicaId on which the given row is being served. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegionLocation, getRegionLocation, getRegionLocationprivate final AsyncRegionLocator locator
public AsyncTableRegionLocatorImpl(TableName tableName, AsyncRegionLocator locator)
public TableName getName()
AsyncTableRegionLocatorgetName in interface AsyncTableRegionLocatorpublic CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, int replicaId, boolean reload)
AsyncTableRegionLocatorreplicaId on which the given row is being served.
Returns the location of the region with the given replicaId to which the row
belongs.
getRegionLocation in interface AsyncTableRegionLocatorrow - Row to find.replicaId - the replica id of the regionreload - true to reload information or false to use cached informationCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.