com.google.cloud.bigtable.hbase2_x
Class BigtableAsyncTableRegionLocator
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.AbstractBigtableRegionLocator
-
- com.google.cloud.bigtable.hbase2_x.BigtableAsyncTableRegionLocator
-
- All Implemented Interfaces:
- AsyncTableRegionLocator
public class BigtableAsyncTableRegionLocator extends AbstractBigtableRegionLocator implements AsyncTableRegionLocator
Bigtable implementation ofAsyncTableRegionLocator
- Author:
- spollapally
-
-
Field Summary
-
Fields inherited from class com.google.cloud.bigtable.hbase.AbstractBigtableRegionLocator
MAX_REGION_AGE_MILLIS, tableName
-
-
Constructor Summary
Constructors Constructor and Description BigtableAsyncTableRegionLocator(TableName tableName, BigtableOptions options, IBigtableDataClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TableName
getName()
CompletableFuture<HRegionLocation>
getRegionLocation(byte[] row, boolean reload)
CompletableFuture<HRegionLocation>
getRegionLocation(byte[] row, int replicaId, boolean reload)
SampledRowKeysAdapter
getSampledRowKeysAdapter(TableName tableName, ServerName serverName)
-
Methods inherited from class com.google.cloud.bigtable.hbase.AbstractBigtableRegionLocator
getRegionsAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hadoop.hbase.client.AsyncTableRegionLocator
getRegionLocation, getRegionLocation
-
-
-
-
Constructor Detail
-
BigtableAsyncTableRegionLocator
public BigtableAsyncTableRegionLocator(TableName tableName, BigtableOptions options, IBigtableDataClient client)
-
-
Method Detail
-
getName
public TableName getName()
- Specified by:
getName
in interfaceAsyncTableRegionLocator
-
getRegionLocation
public CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, boolean reload)
- Specified by:
getRegionLocation
in interfaceAsyncTableRegionLocator
-
getRegionLocation
public CompletableFuture<HRegionLocation> getRegionLocation(byte[] row, int replicaId, boolean reload)
- Specified by:
getRegionLocation
in interfaceAsyncTableRegionLocator
-
getSampledRowKeysAdapter
public SampledRowKeysAdapter getSampledRowKeysAdapter(TableName tableName, ServerName serverName)
- Specified by:
getSampledRowKeysAdapter
in classAbstractBigtableRegionLocator
-
-