@InternalApi(value="For internal usage only") public abstract class BigtableRegionLocator extends AbstractBigtableRegionLocator implements org.apache.hadoop.hbase.client.RegionLocator
For internal use only - public for technical reasons.
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG
Constant
LOG |
MAX_REGION_AGE_MILLIS, tableName
Constructor and Description |
---|
BigtableRegionLocator(org.apache.hadoop.hbase.TableName tableName,
BigtableOptions options,
IBigtableDataClient client)
Constructor for BigtableRegionLocator.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<org.apache.hadoop.hbase.HRegionLocation> |
getAllRegionLocations() |
byte[][] |
getEndKeys() |
org.apache.hadoop.hbase.TableName |
getName() |
org.apache.hadoop.hbase.HRegionLocation |
getRegionLocation(byte[] row) |
org.apache.hadoop.hbase.HRegionLocation |
getRegionLocation(byte[] row,
boolean reload) |
org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> |
getStartEndKeys() |
byte[][] |
getStartKeys() |
getRegionsAsync, getSampledRowKeysAdapter
protected static final Logger LOG
LOG
public BigtableRegionLocator(org.apache.hadoop.hbase.TableName tableName, BigtableOptions options, IBigtableDataClient client)
tableName
- a TableName
object.options
- a BigtableOptions
object.client
- a IBigtableDataClient
object.public org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] row) throws IOException
getRegionLocation
in interface org.apache.hadoop.hbase.client.RegionLocator
IOException
public org.apache.hadoop.hbase.HRegionLocation getRegionLocation(byte[] row, boolean reload) throws IOException
getRegionLocation
in interface org.apache.hadoop.hbase.client.RegionLocator
IOException
public List<org.apache.hadoop.hbase.HRegionLocation> getAllRegionLocations() throws IOException
getAllRegionLocations
in interface org.apache.hadoop.hbase.client.RegionLocator
IOException
public byte[][] getStartKeys() throws IOException
getStartKeys
in interface org.apache.hadoop.hbase.client.RegionLocator
IOException
public byte[][] getEndKeys() throws IOException
getEndKeys
in interface org.apache.hadoop.hbase.client.RegionLocator
IOException
public org.apache.hadoop.hbase.util.Pair<byte[][],byte[][]> getStartEndKeys() throws IOException
getStartEndKeys
in interface org.apache.hadoop.hbase.client.RegionLocator
IOException
public org.apache.hadoop.hbase.TableName getName()
getName
in interface org.apache.hadoop.hbase.client.RegionLocator
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException