@InterfaceAudience.Public @InterfaceStability.Evolving public interface RegionLocator extends Closeable
Connection
.ConnectionFactory
,
Connection
,
Table
Modifier and Type | Method and Description |
---|---|
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 IOException
row
- Row to find.IOException
- if a remote or network exception occursHRegionLocation getRegionLocation(byte[] row, boolean reload) throws IOException
row
- Row to find.reload
- true to reload information or false to use cached informationIOException
- if a remote or network exception occursList<HRegionLocation> getAllRegionLocations() throws IOException
List
of all regions associated with this table.IOException
- if a remote or network exception occursbyte[][] getStartKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException
- if a remote or network exception occursbyte[][] getEndKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException
- if a remote or network exception occursPair<byte[][],byte[][]> getStartEndKeys() throws IOException
This is mainly useful for the MapReduce integration.
IOException
- if a remote or network exception occursTableName getName()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.