|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HConnection
| Method Summary | |
|---|---|
void |
close(Text tableName)
Discard all the information about this table |
HRegionInterface |
getHRegionConnection(HServerAddress regionServer)
Establishes a connection to the region server at the specified address. |
HMasterInterface |
getMaster()
|
boolean |
isMasterRunning()
|
HTableDescriptor[] |
listTables()
List all the userspace tables. |
HRegionLocation |
locateRegion(Text tableName,
Text row)
Find the location of the region of tableName that row lives in. |
HRegionLocation |
relocateRegion(Text tableName,
Text row)
Find the location of the region of tableName that row lives in, ignoring any value that might be in the cache. |
boolean |
tableExists(Text tableName)
Checks if tableName exists. |
| Method Detail |
|---|
HMasterInterface getMaster()
throws MasterNotRunningException
MasterNotRunningExceptionboolean isMasterRunning()
boolean tableExists(Text tableName)
tableName exists.
tableName - Table to check.
HTableDescriptor[] listTables()
throws IOException
IOException
HRegionLocation locateRegion(Text tableName,
Text row)
throws IOException
tableName - name of the table row is inrow - row key you're trying to find the region of
IOException
HRegionLocation relocateRegion(Text tableName,
Text 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
IOExceptionvoid close(Text tableName)
tableName - the name of the table to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||