public abstract class BigtableRegionLocator extends Object implements RegionLocator
BigtableRegionLocator class.
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG
Constant
LOG |
static long |
MAX_REGION_AGE_MILLIS
Constant
MAX_REGION_AGE_MILLIS=60 * 1000 |
Constructor and Description |
---|
BigtableRegionLocator(TableName tableName,
BigtableOptions options,
BigtableDataClient client)
Constructor for BigtableRegionLocator.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<HRegionLocation> |
getAllRegionLocations() |
byte[][] |
getEndKeys() |
TableName |
getName() |
HRegionLocation |
getRegionLocation(byte[] row) |
HRegionLocation |
getRegionLocation(byte[] row,
boolean reload) |
abstract SampledRowKeysAdapter |
getSampledRowKeysAdapter(TableName tableName,
ServerName serverName) |
Pair<byte[][],byte[][]> |
getStartEndKeys() |
byte[][] |
getStartKeys() |
public static long MAX_REGION_AGE_MILLIS
MAX_REGION_AGE_MILLIS=60 * 1000
protected static final Logger LOG
LOG
public BigtableRegionLocator(TableName tableName, BigtableOptions options, BigtableDataClient client)
Constructor for BigtableRegionLocator.
tableName
- a TableName
object.options
- a BigtableOptions
object.client
- a BigtableDataClient
object.public abstract SampledRowKeysAdapter getSampledRowKeysAdapter(TableName tableName, ServerName serverName)
public HRegionLocation getRegionLocation(byte[] row) throws IOException
getRegionLocation
in interface RegionLocator
IOException
public HRegionLocation getRegionLocation(byte[] row, boolean reload) throws IOException
getRegionLocation
in interface RegionLocator
IOException
public List<HRegionLocation> getAllRegionLocations() throws IOException
getAllRegionLocations
in interface RegionLocator
IOException
public byte[][] getStartKeys() throws IOException
getStartKeys
in interface RegionLocator
IOException
public byte[][] getEndKeys() throws IOException
getEndKeys
in interface RegionLocator
IOException
public Pair<byte[][],byte[][]> getStartEndKeys() throws IOException
getStartEndKeys
in interface RegionLocator
IOException
public TableName getName()
getName
in interface RegionLocator
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException