@InterfaceAudience.Public @InterfaceStability.Evolving public interface RegionLocator extends java.io.Closeable
Connection.ConnectionFactory,
Connection,
Table| Modifier and Type | Method and Description |
|---|---|
java.util.List<HRegionLocation> |
getAllRegionLocations()
Retrieves all of the regions associated with this table.
|
byte[][] |
getEndKeys()
Gets the ending row key for every region in the currently open table.
|
TableName |
getName()
Gets the fully qualified table name instance of this table.
|
HRegionLocation |
getRegionLocation(byte[] row)
Finds the region on which the given row is being served.
|
HRegionLocation |
getRegionLocation(byte[] row,
boolean reload)
Finds the region on which the given row is being served.
|
Pair<byte[][],byte[][]> |
getStartEndKeys()
Gets the starting and ending row keys for every region in the currently
open table.
|
byte[][] |
getStartKeys()
Gets the starting row key for every region in the currently open table.
|
HRegionLocation getRegionLocation(byte[] row) throws java.io.IOException
row - Row to find.java.io.IOException - if a remote or network exception occursHRegionLocation getRegionLocation(byte[] row, boolean reload) throws java.io.IOException
row - Row to find.reload - true to reload information or false to use cached informationjava.io.IOException - if a remote or network exception occursjava.util.List<HRegionLocation> getAllRegionLocations() throws java.io.IOException
List of all regions associated with this table.java.io.IOException - if a remote or network exception occursbyte[][] getStartKeys()
throws java.io.IOException
This is mainly useful for the MapReduce integration.
java.io.IOException - if a remote or network exception occursbyte[][] getEndKeys()
throws java.io.IOException
This is mainly useful for the MapReduce integration.
java.io.IOException - if a remote or network exception occursPair<byte[][],byte[][]> getStartEndKeys() throws java.io.IOException
This is mainly useful for the MapReduce integration.
java.io.IOException - if a remote or network exception occursTableName getName()