@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, wait
getRegionLocation, getRegionLocation, getRegionLocation
private final AsyncRegionLocator locator
public AsyncTableRegionLocatorImpl(TableName tableName, AsyncRegionLocator locator)
public TableName getName()
AsyncTableRegionLocator
getName
in interface AsyncTableRegionLocator
public CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, int replicaId, boolean reload)
AsyncTableRegionLocator
replicaId
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 AsyncTableRegionLocator
row
- Row to find.replicaId
- the replica id of the regionreload
- true to reload information or false to use cached informationCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.