|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HConnection
Cluster connection.
HConnectionManager manages instances of this class.
| Method Summary | ||
|---|---|---|
HRegionInterface |
getHRegionConnection(HServerAddress regionServer)
Establishes a connection to the region server at the specified address. |
|
HTableDescriptor |
getHTableDescriptor(byte[] tableName)
|
|
HMasterInterface |
getMaster()
|
|
HRegionLocation |
getRegionLocation(byte[] tableName,
byte[] row,
boolean reload)
Find region location hosting passed row |
|
|
getRegionServerWithRetries(ServerCallable<T> callable)
Pass in a ServerCallable with your particular bit of logic defined and this method will manage the process of doing retries with timed waits and refinds of missing regions. |
|
boolean |
isMasterRunning()
|
|
boolean |
isTableEnabled(byte[] tableName)
|
|
HTableDescriptor[] |
listTables()
List all the userspace tables. |
|
HRegionLocation |
locateRegion(byte[] tableName,
byte[] row)
Find the location of the region of tableName that row lives in. |
|
HRegionLocation |
relocateRegion(byte[] tableName,
byte[] row)
Find the location of the region of tableName that row lives in, ignoring any value that might be in the cache. |
|
boolean |
tableExists(byte[] tableName)
Checks if tableName exists. |
|
| Method Detail |
|---|
HMasterInterface getMaster()
throws MasterNotRunningException
MasterNotRunningExceptionboolean isMasterRunning()
boolean tableExists(byte[] tableName)
throws MasterNotRunningException
tableName exists.
tableName - Table to check.
MasterNotRunningException
boolean isTableEnabled(byte[] tableName)
throws IOException
tableName -
IOException
HTableDescriptor[] listTables()
throws IOException
IOException
HTableDescriptor getHTableDescriptor(byte[] tableName)
throws IOException
tableName -
IOException
HRegionLocation locateRegion(byte[] tableName,
byte[] row)
throws IOException
tableName - name of the table row is inrow - row key you're trying to find the region of
IOException
HRegionLocation relocateRegion(byte[] tableName,
byte[] row)
throws IOException
tableName - name of the table row is inrow - row key you're trying to find the region of
IOException
HRegionInterface getHRegionConnection(HServerAddress regionServer)
throws IOException
regionServer - - the server to connect to
IOException
HRegionLocation getRegionLocation(byte[] tableName,
byte[] row,
boolean reload)
throws IOException
tableName - row - Row to find.reload - If true do not use cache, otherwise bypass.
IOException
<T> T getRegionServerWithRetries(ServerCallable<T> callable)
throws IOException,
RuntimeException
T - the type of the return valuecallable -
IOException
RuntimeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||